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

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