Exemplo n.º 1
0
        /// <summary>
        /// Add an <see cref="System.UInt16"/> (Big-endian) to the writer
        /// </summary>
        /// <param name="value"></param>
        /// <remarks>
        /// This functionality is not allowed when the writer has been sealed
        /// </remarks>
        public void WriteUInt16BE(UInt16 value)
        {
            CheckImmutable();
            ByteArrayHelpers.WriteUInt16BE(
                _proxy,
                0,
                value);

            WriteBytes(
                _proxy,
                0,
                2);
        }
Exemplo n.º 2
0
 public void WriteUInt16BE(ushort value)
 {
     this.CheckImmutable();
     ByteArrayHelpers.WriteUInt16BE(this._proxy, 0, value);
     this.WriteBytes(this._proxy, 0, 2);
 }