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

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