Example #1
0
#pragma warning disable 3001, 3002, 0618

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

            WriteBytes(
                _proxy,
                0,
                2);
        }
Example #2
0
 public void WriteUInt16LE(ushort value)
 {
     this.CheckImmutable();
     ByteArrayHelpers.WriteUInt16LE(this._proxy, 0, value);
     this.WriteBytes(this._proxy, 0, 2);
 }