Пример #1
0
        /// <summary>
        /// Read a 48bit value based on the current stream and bit position
        /// </summary>
        public Int48 ReadInt48()
        {
            byte[] bytes = ReadBytes(48);
            Array.Resize(ref bytes, 8);
            Int48 value = BitConverter.ToInt64(bytes, 0);

            return(value);
        }
Пример #2
0
 /// <summary>
 /// Write a 48bit value based on the current stream and bit position
 /// </summary>
 public void WriteInt48(Int48 value)
 {
     WriteBytes(BitConverter.GetBytes((long)value), 48);
 }