Пример #1
0
        public void SetUInt16(long index, EcmaValue value, DataViewEndianness isLittleEndian)
        {
            Guard.BufferNotDetached(this);
            ushort ushortValue = value.ToUInt16();

            ThrowIfOutOfBound(index, sizeof(ushort));
            this.Buffer.SetValue(index + ByteOffset, CheckAndSwap(ushortValue, isLittleEndian));
        }