mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-08-18 21:54:17 +00:00
8 lines
229 B
TypeScript
8 lines
229 B
TypeScript
import chunk from '../chunk';
|
|
|
|
export default (validity: number): Uint8Array => {
|
|
const buf = new DataView(new ArrayBuffer(4));
|
|
buf.setFloat32(0, validity, true);
|
|
return chunk(0x0003, new Uint8Array(buf.buffer), false);
|
|
};
|