mirror of
https://github.com/djhackersdev/minime.git
synced 2026-07-24 11:40:45 -05:00
11 lines
271 B
TypeScript
11 lines
271 B
TypeScript
import { DiscoverProfileResponse } from "../response/discoverProfile";
|
|
|
|
export function discoverProfile(res: DiscoverProfileResponse) {
|
|
const buf = Buffer.alloc(0x0010);
|
|
|
|
buf.writeInt16LE(0x006c, 0x0000);
|
|
buf.writeInt8(res.exists ? 1 : 0, 0x0004);
|
|
|
|
return buf;
|
|
}
|