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:
parent
936ba2263f
commit
344d76fb97
2 changed files with 1 additions and 15 deletions
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue