14 lines
389 B
TypeScript
14 lines
389 B
TypeScript
import { RequestCode } from "./_defs";
|
|
import { UpdateUiReportRequest } from "../request/updateUiReport";
|
|
|
|
updateUiReport.msgCode = 0x0084 as RequestCode;
|
|
updateUiReport.msgLen = 0x0410;
|
|
|
|
export function updateUiReport(buf: Buffer): UpdateUiReportRequest {
|
|
return {
|
|
type: "update_ui_report_req",
|
|
field_02: buf.readUInt16LE(0x0002),
|
|
field_04: buf.readUInt16LE(0x0004),
|
|
};
|
|
}
|