/// <summary> /// Read a 24bit value based on the current stream and bit position /// </summary> public Int24 ReadInt24() { byte[] bytes = ReadBytes(24); Array.Resize(ref bytes, 4); Int24 value = BitConverter.ToInt32(bytes, 0); return(value); }
/// <summary> /// Write a 24bit value based on the current stream and bit position /// </summary> public void WriteInt24(Int24 value) { WriteBytes(BitConverter.GetBytes((int)value), 24); }