/// <summary>
        /// Writes three-byte signed int value to the underlaying stream
        /// </summary>
        /// <param name="value"><see cref="int"/> value to write</param>
        public void Write24(int value)
        {
            if (BE)
            {
                ByteUtils.From24IntBE(buffer, value);
            }
            else
            {
                ByteUtils.From24IntLE(buffer, value);
            }

            stream.Write(buffer, 0, 3);
        }