idz: Add idz2 encoders

This commit is contained in:
b166fe48b91eb09f279b79a4ecf57b2f8f0d3705
2021-02-03 23:43:42 +00:00
committed by da5669c09fdb0a288ba01e259a609d7779ac7fc9
parent 2474879c89
commit f2434cef7e
28 changed files with 637 additions and 92 deletions
+9 -1
View File
@@ -1,9 +1,17 @@
import { LoadEventInfoResponse } from "../response/loadEventInfo";
export function loadEventInfo(res: LoadEventInfoResponse): Buffer {
export function loadEventInfo1(res: LoadEventInfoResponse): Buffer {
const buf = Buffer.alloc(0x01b0);
buf.writeUInt16LE(0x00bf, 0x0000);
return buf;
}
export function loadEventInfo2(res: LoadEventInfoResponse): Buffer {
const buf = Buffer.alloc(0x01b0);
buf.writeUInt16LE(0x00ad, 0x0000);
return buf;
}