minime/src/idz/decoder/discoverProfile.ts
Tau db260d5f2f idz/decoder: Drop RequestCode typedef
This is just boilerplate for its own sake.
2019-11-06 17:28:30 -05:00

13 lines
347 B
TypeScript

import { DiscoverProfileRequest } from "../request/discoverProfile";
import { AimeId } from "../../model";
discoverProfile.msgCode = 0x006b;
discoverProfile.msgLen = 0x0010;
export function discoverProfile(buf: Buffer): DiscoverProfileRequest {
return {
type: "discover_profile_req",
aimeId: buf.readUInt32LE(0x0004) as AimeId,
};
}