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

# IArrayBufferViewReadBytes(UInt64, UInt64, Byte, UInt64) Method

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

    ulong ReadBytes(
    	ulong offset,
    	ulong count,
    	byte[] destination,
    	ulong destinationIndex
    )

    Function ReadBytes (
    	offset As ULong,
    	count As ULong,
    	destination As Byte(),
    	destinationIndex As ULong
    ) As ULong

    unsigned long long ReadBytes(
    	unsigned long long offset,
    	unsigned long long count,
    	array<unsigned char>^ destination,
    	unsigned long long destinationIndex
    )

    abstract ReadBytes :
            offset : uint64 *
            count : uint64 *
            destination : byte[] *
            destinationIndex : uint64 -> uint64

#### Parameters

offset UInt64
  The offset within the view of the first byte to copy.
count UInt64
  The maximum number of bytes to copy.
destination Byte
  The byte array into which to copy the bytes.
destinationIndex UInt64
  The index within destination at which to store the first copied byte.

#### Return Value

UInt64
The number of bytes copied.
See Also

#### Reference

IArrayBufferView Interface
ReadBytes Overload
Microsoft.ClearScript.JavaScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft