Esempio n. 1
0
        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,
            });
        }
Esempio n. 2
0
        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);
        }