idz: Add explicit CreateProfileResponse
This commit is contained in:
committed by
da5669c09fdb0a288ba01e259a609d7779ac7fc9
parent
2a546c0d9d
commit
efcc1caa76
@@ -0,0 +1,11 @@
|
||||
import { CreateProfileResponse } from "../response/createProfile";
|
||||
|
||||
export function createProfile(res: CreateProfileResponse) {
|
||||
const buf = Buffer.alloc(0x0020);
|
||||
|
||||
// Shares message type code with the "generic" response
|
||||
buf.writeInt16LE(0x0001, 0x0000);
|
||||
buf.writeInt32LE(res.aimeId, 0x0004);
|
||||
|
||||
return buf;
|
||||
}
|
||||
Reference in New Issue
Block a user