ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.JavaScript
IArrayBufferView Interface
IArrayBufferView Methods
WriteBytes Method
WriteBytes(Byte[], UInt64, UInt64, UInt64) Method
WriteBytes(ReadOnlySpan<Byte>, UInt64, UInt64, UInt64) Method

# IArrayBufferViewWriteBytes(ReadOnlySpanByte, UInt64, UInt64, UInt64) Method

Copies bytes from the specified byte span into the view.
Namespace: Microsoft.ClearScript.JavaScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    ulong WriteBytes(
    	ReadOnlySpan<byte> source,
    	ulong sourceIndex,
    	ulong count,
    	ulong offset
    )

    Function WriteBytes (
    	source As ReadOnlySpan(Of Byte),
    	sourceIndex As ULong,
    	count As ULong,
    	offset As ULong
    ) As ULong

    unsigned long long WriteBytes(
    	ReadOnlySpan<unsigned char> source,
    	unsigned long long sourceIndex,
    	unsigned long long count,
    	unsigned long long offset
    )

    abstract WriteBytes :
            source : ReadOnlySpan<byte> *
            sourceIndex : uint64 *
            count : uint64 *
            offset : uint64 -> uint64

#### Parameters

source ReadOnlySpan Byte
  The byte span from which to copy the bytes.
sourceIndex UInt64
  The index within source of the first byte to copy.
count UInt64
  The maximum number of bytes to copy.
offset UInt64
  The offset within the view at which to store the first copied byte.

#### Return Value

UInt64
The number of bytes copied.
See Also

#### Reference

IArrayBufferView Interface
WriteBytes Overload
Microsoft.ClearScript.JavaScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft