/// <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); }
/// <summary> /// Write a 48bit value based on the current stream and bit position /// </summary> public void WriteInt48(Int48 value) { WriteBytes(BitConverter.GetBytes(value), 48); }