1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 09:04:13 +02:00

simple parser for cmdKeyValues

This commit is contained in:
Robin Appelman 2017-09-01 22:46:00 +02:00
commit 344d76fb97
2 changed files with 1 additions and 15 deletions

View file

@ -1,13 +0,0 @@
import {BitStream} from 'bit-buffer';
import {CmdKeyValuesPacket} from '../../Data/Packet';
export function ParseCmdKeyValues(stream: BitStream): CmdKeyValuesPacket {
const length = stream.readUint32();
const data = stream.readBitStream(length);
// 'length{32}data{$length}'
return {
packetType: 'cmdKeyValues',
length,
data,
};
}