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

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