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); }
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); }