private void PushFrame(int bitCount, BitFrameType type) { var position = this._Position; this.WriteUInt32(0, bitCount); this._Frames.Push(new BitFrame() { Position = position, Value = (uint)bitCount, Type = type, }); }
private uint PushFrame(int bitCount, BitFrameType type) { var value = this.ReadUInt32(bitCount); this._Frames.Push(new BitFrame() { Position = this._Position, Value = value, Type = type, }); return(value); }