mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-08-13 11:23:56 +00:00
8 lines
241 B
TypeScript
8 lines
241 B
TypeScript
import chunk from '../chunk';
|
|
|
|
export default (timestamp: bigint): Uint8Array => {
|
|
const buf = new DataView(new ArrayBuffer(8));
|
|
buf.setBigUint64(0, BigInt(timestamp), true);
|
|
return chunk(0x0006, new Uint8Array(buf.buffer), false);
|
|
};
|