idz: Add explicit CreateProfileResponse

This commit is contained in:
Tau
2021-02-03 23:43:40 +00:00
committed by da5669c09fdb0a288ba01e259a609d7779ac7fc9
parent 2a546c0d9d
commit efcc1caa76
5 changed files with 30 additions and 4 deletions
+11
View File
@@ -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;
}