Beispiel #1
0
        internal void Write(Int64 source, int numberOfBits)
        {
            InternalEnsureBufferSize(m_bitLength + numberOfBits);
            ulong usource = (ulong)source;

            NetBitWriter.WriteUInt64(usource, numberOfBits, m_data, m_bitLength);
            m_bitLength += numberOfBits;
        }
Beispiel #2
0
        internal void Write(Int64 source)
        {
            InternalEnsureBufferSize(m_bitLength + 64);
            ulong usource = (ulong)source;

            NetBitWriter.WriteUInt64(usource, 64, m_data, m_bitLength);
            m_bitLength += 64;
        }
Beispiel #3
0
        public void Write(UInt64 source, int numberOfBits)
        {
            NetException.Assert((numberOfBits > 0 && numberOfBits <= 64), "Write(byte, numberOfBits) can only write between 1 and 64 bits");

            EnsureBufferSize(m_bitLength + numberOfBits);
            NetBitWriter.WriteUInt64(source, numberOfBits, m_data, m_bitLength);
            m_bitLength += numberOfBits;
        }
Beispiel #4
0
 //
 // 64 bit
 //
 internal void Write(UInt64 source)
 {
     InternalEnsureBufferSize(m_bitLength + 64);
     NetBitWriter.WriteUInt64(source, 64, m_data, m_bitLength);
     m_bitLength += 64;
 }