Esempio n. 1
0
        public unsafe DeferredByte Write(byte value)
        {
            var ret = new DeferredByte {
                m_writer = this, m_offset = m_Data->length
            };

            WriteBytes((byte *)&value, sizeof(byte));
            return(ret);
        }
Esempio n. 2
0
        public DeferredByte Write(byte value)
        {
            var ret = new DeferredByte {
                m_writer = this, m_offset = m_Data->length + ((m_Data->bitIndex + 7) >> 3)
            };

            WriteBytes((byte *)&value, sizeof(byte));
            return(ret);
        }