INodeBuffer interface
Rappresenta un buffer del modulo net in Node.js.
Questa interfaccia supporta il framework e non deve essere chiamata direttamente per il codice.
- Extends
-
Uint8Array
Proprietà
| constructor | |
| Uint8Array |
Proprietà ereditate
| buffer | Istanza di ArrayBuffer a cui fa riferimento la matrice. |
| byte |
Lunghezza in byte della matrice. |
| byte |
Offset in byte della matrice. |
| BYTES_PER_ELEMENT | Dimensione in byte di ogni elemento nella matrice. |
| length | Lunghezza della matrice. |
Metodi
Metodi ereditati
| copy |
Restituisce l'oggetto dopo la copia di una sezione della matrice identificata dall'inizio e dalla fine alla stessa matrice a partire dalla destinazione della posizione |
| every((value: number, index: number, array: Uint8Array) => boolean, any) | Determina se tutti i membri di una matrice soddisfano il test specificato. |
| filter((value: number, index: number, array: Uint8Array) => any, any) | Restituisce gli elementi di una matrice che soddisfano la condizione specificata in una funzione di callback. |
| find((value: number, index: number, obj: Uint8Array) => boolean, any) | Restituisce il valore del primo elemento nella matrice in cui il predicato è true e non definito in caso contrario. |
| find |
Restituisce l'indice del primo elemento nella matrice in cui il predicato è true e -1 in caso contrario. |
| for |
Esegue l'azione specificata per ogni elemento in una matrice. |
| join(string) | Aggiunge tutti gli elementi di una matrice separati dalla stringa separatore specificata. |
| map((value: number, index: number, array: Uint8Array) => number, any) | Chiama una funzione di callback definita su ogni elemento di una matrice e restituisce una matrice che contiene i risultati. |
| reduce((previous |
Chiama la funzione di callback specificata per tutti gli elementi di una matrice. Il valore restituito della funzione di callback è il risultato accumulato e viene fornito come argomento nella chiamata successiva alla funzione di callback. |
| reduce((previous |
|
| reduce<U>((previous |
Chiama la funzione di callback specificata per tutti gli elementi di una matrice. Il valore restituito della funzione di callback è il risultato accumulato e viene fornito come argomento nella chiamata successiva alla funzione di callback. |
| reduce |
Chiama la funzione di callback specificata per tutti gli elementi in una matrice, in ordine decrescente. Il valore restituito della funzione di callback è il risultato accumulato e viene fornito come argomento nella chiamata successiva alla funzione di callback. |
| reduce |
|
| reduce |
Chiama la funzione di callback specificata per tutti gli elementi in una matrice, in ordine decrescente. Il valore restituito della funzione di callback è il risultato accumulato e viene fornito come argomento nella chiamata successiva alla funzione di callback. |
| reverse() | Inverte gli elementi in una matrice. |
| set(Array |
Imposta un valore o una matrice di valori. |
| some((value: number, index: number, array: Uint8Array) => boolean, any) | Determina se la funzione di callback specificata restituisce true per qualsiasi elemento di una matrice. |
| sort((a: number, b: number) => number) | Ordina una matrice. |
| subarray(number, number) | Ottiene una nuova visualizzazione Uint8Array dell'archivio ArrayBuffer per questa matrice, facendo riferimento agli elementi all'inizio, inclusi, fino alla fine, esclusivi. |
| to |
Converte un numero in una stringa utilizzando le impostazioni locali correnti. |
Dettagli proprietà
constructor
constructor: any
Valore della proprietà
any
Uint8Array
Uint8Array: Uint8ArrayConstructor
Valore della proprietà
Uint8ArrayConstructor
Dettagli proprietà ereditate
buffer
Istanza di ArrayBuffer a cui fa riferimento la matrice.
buffer: ArrayBufferLike
Valore della proprietà
ArrayBufferLike
ereditato da Uint8Array.buffer
byteLength
Lunghezza in byte della matrice.
byteLength: number
Valore della proprietà
number
ereditato da Uint8Array.byteLength
byteOffset
Offset in byte della matrice.
byteOffset: number
Valore della proprietà
number
Ereditato da Uint8Array.byteOffset
BYTES_PER_ELEMENT
Dimensione in byte di ogni elemento nella matrice.
BYTES_PER_ELEMENT: number
Valore della proprietà
number
ereditato da Uint8Array.BYTES_PER_ELEMENT
length
Lunghezza della matrice.
length: number
Valore della proprietà
number
ereditato da Uint8Array.length
Dettagli metodo
compare(Uint8Array, number, number, number, number)
function compare(otherBuffer: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number
Parametri
- otherBuffer
-
Uint8Array
- targetStart
-
number
- targetEnd
-
number
- sourceStart
-
number
- sourceEnd
-
number
Restituisce
number
copy(Uint8Array, number, number, number)
function copy(targetBuffer: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number
Parametri
- targetBuffer
-
Uint8Array
- targetStart
-
number
- sourceStart
-
number
- sourceEnd
-
number
Restituisce
number
entries()
function entries(): IterableIterator<[number, number]>
Restituisce
IterableIterator<[number, number]>
equals(Uint8Array)
function equals(otherBuffer: Uint8Array): boolean
Parametri
- otherBuffer
-
Uint8Array
Restituisce
boolean
fill(any, number, number)
function fill(value: any, offset?: number, end?: number): this
Parametri
- value
-
any
- offset
-
number
- end
-
number
Restituisce
this
includes(string | number | this, number, string)
function includes(value: string | number | this, byteOffset?: number, encoding?: string): boolean
Parametri
- value
-
string | number | this
- byteOffset
-
number
- encoding
-
string
Restituisce
boolean
indexOf(string | number | Uint8Array, number, string)
function indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: string): number
Parametri
- value
-
string | number | Uint8Array
- byteOffset
-
number
- encoding
-
string
Restituisce
number
keys()
function keys(): IterableIterator<number>
Restituisce
IterableIterator<number>
lastIndexOf(string | number | Uint8Array, number, string)
function lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: string): number
Parametri
- value
-
string | number | Uint8Array
- byteOffset
-
number
- encoding
-
string
Restituisce
number
readDoubleBE(number, boolean)
function readDoubleBE(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readDoubleLE(number, boolean)
function readDoubleLE(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readFloatBE(number, boolean)
function readFloatBE(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readFloatLE(number, boolean)
function readFloatLE(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readInt16BE(number, boolean)
function readInt16BE(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readInt16LE(number, boolean)
function readInt16LE(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readInt32BE(number, boolean)
function readInt32BE(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readInt32LE(number, boolean)
function readInt32LE(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readInt8(number, boolean)
function readInt8(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readIntBE(number, number, boolean)
function readIntBE(offset: number, byteLength: number, noAssert?: boolean): number
Parametri
- offset
-
number
- byteLength
-
number
- noAssert
-
boolean
Restituisce
number
readIntLE(number, number, boolean)
function readIntLE(offset: number, byteLength: number, noAssert?: boolean): number
Parametri
- offset
-
number
- byteLength
-
number
- noAssert
-
boolean
Restituisce
number
readUInt16BE(number, boolean)
function readUInt16BE(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readUInt16LE(number, boolean)
function readUInt16LE(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readUInt32BE(number, boolean)
function readUInt32BE(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readUInt32LE(number, boolean)
function readUInt32LE(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readUInt8(number, boolean)
function readUInt8(offset: number, noAssert?: boolean): number
Parametri
- offset
-
number
- noAssert
-
boolean
Restituisce
number
readUIntBE(number, number, boolean)
function readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number
Parametri
- offset
-
number
- byteLength
-
number
- noAssert
-
boolean
Restituisce
number
readUIntLE(number, number, boolean)
function readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number
Parametri
- offset
-
number
- byteLength
-
number
- noAssert
-
boolean
Restituisce
number
slice(number, number)
function slice(start?: number, end?: number): this
Parametri
- start
-
number
- end
-
number
Restituisce
this
swap16()
function swap16(): this
Restituisce
this
swap32()
function swap32(): this
Restituisce
this
swap64()
function swap64(): this
Restituisce
this
toJSON()
function toJSON(): { data: any[], type: "Buffer" }
Restituisce
{ data: any[], type: "Buffer" }
toString(string, number, number)
function toString(encoding?: string, start?: number, end?: number): string
Parametri
- encoding
-
string
- start
-
number
- end
-
number
Restituisce
string
values()
function values(): IterableIterator<number>
Restituisce
IterableIterator<number>
write(string, number, number, string)
function write(string: string, offset?: number, length?: number, encoding?: string): number
Parametri
- string
-
string
- offset
-
number
- length
-
number
- encoding
-
string
Restituisce
number
writeDoubleBE(number, number, boolean)
function writeDoubleBE(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeDoubleLE(number, number, boolean)
function writeDoubleLE(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeFloatBE(number, number, boolean)
function writeFloatBE(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeFloatLE(number, number, boolean)
function writeFloatLE(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeInt16BE(number, number, boolean)
function writeInt16BE(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeInt16LE(number, number, boolean)
function writeInt16LE(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeInt32BE(number, number, boolean)
function writeInt32BE(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeInt32LE(number, number, boolean)
function writeInt32LE(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeInt8(number, number, boolean)
function writeInt8(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeIntBE(number, number, number, boolean)
function writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- byteLength
-
number
- noAssert
-
boolean
Restituisce
number
writeIntLE(number, number, number, boolean)
function writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- byteLength
-
number
- noAssert
-
boolean
Restituisce
number
writeUInt16BE(number, number, boolean)
function writeUInt16BE(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeUInt16LE(number, number, boolean)
function writeUInt16LE(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeUInt32BE(number, number, boolean)
function writeUInt32BE(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeUInt32LE(number, number, boolean)
function writeUInt32LE(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeUInt8(number, number, boolean)
function writeUInt8(value: number, offset: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- noAssert
-
boolean
Restituisce
number
writeUIntBE(number, number, number, boolean)
function writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- byteLength
-
number
- noAssert
-
boolean
Restituisce
number
writeUIntLE(number, number, number, boolean)
function writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number
Parametri
- value
-
number
- offset
-
number
- byteLength
-
number
- noAssert
-
boolean
Restituisce
number
Dettagli dei metodi ereditati
copyWithin(number, number, number)
Restituisce l'oggetto dopo la copia di una sezione della matrice identificata dall'inizio e dalla fine alla stessa matrice a partire dalla destinazione della posizione
function copyWithin(target: number, start: number, end?: number): this
Parametri
- target
-
number
Se la destinazione è negativa, viene considerata come lunghezza+destinazione in cui la lunghezza è la lunghezza della matrice.
- start
-
number
Se l'inizio è negativo, viene considerato come length+start. Se la fine è negativa, viene considerata come length+end.
- end
-
number
Se non specificato, la lunghezza dell'oggetto viene utilizzata come valore predefinito.
Restituisce
this
Ereditato da Uint8Array.copyWithin
every((value: number, index: number, array: Uint8Array) => boolean, any)
Determina se tutti i membri di una matrice soddisfano il test specificato.
function every(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean
Parametri
- callbackfn
-
(value: number, index: number, array: Uint8Array) => boolean
Funzione che accetta fino a tre argomenti. Ogni metodo chiama la funzione callbackfn per ogni elemento in array1 fino a quando il callbackfn non restituisce false o fino alla fine della matrice.
- thisArg
-
any
Oggetto a cui la parola chiave può fare riferimento nella funzione callbackfn. Se thisArg viene omesso, come valore viene usato undefined.
Restituisce
boolean
Ereditato da Uint8Array.every
filter((value: number, index: number, array: Uint8Array) => any, any)
Restituisce gli elementi di una matrice che soddisfano la condizione specificata in una funzione di callback.
function filter(callbackfn: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array
Parametri
- callbackfn
-
(value: number, index: number, array: Uint8Array) => any
Funzione che accetta fino a tre argomenti. Il metodo filter chiama la funzione callbackfn una volta per ogni elemento nella matrice.
- thisArg
-
any
Oggetto a cui la parola chiave può fare riferimento nella funzione callbackfn. Se thisArg viene omesso, come valore viene usato undefined.
Restituisce
Uint8Array
Ereditato da Uint8Array.filter
find((value: number, index: number, obj: Uint8Array) => boolean, any)
Restituisce il valore del primo elemento nella matrice in cui il predicato è true e non definito in caso contrario.
function find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined
Parametri
- predicate
-
(value: number, index: number, obj: Uint8Array) => boolean
trova chiama predicato una volta per ogni elemento della matrice, in ordine crescente, fino a trovare un predicato in cui il predicato restituisce true. Se viene trovato un elemento di questo tipo, find restituisce immediatamente il valore dell'elemento. In caso contrario, find restituisce undefined.
- thisArg
-
any
Se specificato, verrà usato come valore per ogni chiamata del predicato. Se non viene specificato, viene invece usato undefined.
Restituisce
number | undefined
Ereditato da Uint8Array.find
findIndex((value: number, index: number, obj: Uint8Array) => boolean, any)
Restituisce l'indice del primo elemento nella matrice in cui il predicato è true e -1 in caso contrario.
function findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number
Parametri
- predicate
-
(value: number, index: number, obj: Uint8Array) => boolean
trova chiama predicato una volta per ogni elemento della matrice, in ordine crescente, fino a trovare un predicato in cui il predicato restituisce true. Se viene trovato un elemento di questo tipo, findIndex restituisce immediatamente l'indice dell'elemento. In caso contrario, findIndex restituisce -1.
- thisArg
-
any
Se specificato, verrà usato come valore per ogni chiamata del predicato. Se non viene specificato, viene invece usato undefined.
Restituisce
number
Ereditato da Uint8Array.findIndex
forEach((value: number, index: number, array: Uint8Array) => void, any)
Esegue l'azione specificata per ogni elemento in una matrice.
function forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any)
Parametri
- callbackfn
-
(value: number, index: number, array: Uint8Array) => void
Funzione che accetta fino a tre argomenti. forEach chiama la funzione callbackfn una volta per ogni elemento nella matrice.
- thisArg
-
any
Oggetto a cui la parola chiave può fare riferimento nella funzione callbackfn. Se thisArg viene omesso, come valore viene usato undefined.
Ereditato da Uint8Array.forEach
join(string)
Aggiunge tutti gli elementi di una matrice separati dalla stringa separatore specificata.
function join(separator?: string): string
Parametri
- separator
-
string
Stringa utilizzata per separare un elemento di una matrice dalla successiva nella stringa risultante. Se omesso, gli elementi della matrice sono separati da una virgola.
Restituisce
string
Ereditato da Uint8Array.join
map((value: number, index: number, array: Uint8Array) => number, any)
Chiama una funzione di callback definita su ogni elemento di una matrice e restituisce una matrice che contiene i risultati.
function map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array
Parametri
- callbackfn
-
(value: number, index: number, array: Uint8Array) => number
Funzione che accetta fino a tre argomenti. Il metodo map chiama la funzione callbackfn una volta per ogni elemento nella matrice.
- thisArg
-
any
Oggetto a cui la parola chiave può fare riferimento nella funzione callbackfn. Se thisArg viene omesso, come valore viene usato undefined.
Restituisce
Uint8Array
Ereditato da Uint8Array.map
reduce((previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number)
Chiama la funzione di callback specificata per tutti gli elementi di una matrice. Il valore restituito della funzione di callback è il risultato accumulato e viene fornito come argomento nella chiamata successiva alla funzione di callback.
function reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number
Parametri
- callbackfn
-
(previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number
Funzione che accetta fino a quattro argomenti. Il metodo reduce chiama la funzione callbackfn una volta per ogni elemento nella matrice.
Restituisce
number
Ereditato da Uint8Array.reduce
reduce((previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, number)
function reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number
Parametri
- callbackfn
-
(previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number
- initialValue
-
number
Restituisce
number
Ereditato da Uint8Array.reduce
reduce<U>((previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, U)
Chiama la funzione di callback specificata per tutti gli elementi di una matrice. Il valore restituito della funzione di callback è il risultato accumulato e viene fornito come argomento nella chiamata successiva alla funzione di callback.
function reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U
Parametri
- callbackfn
-
(previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U
Funzione che accetta fino a quattro argomenti. Il metodo reduce chiama la funzione callbackfn una volta per ogni elemento nella matrice.
- initialValue
-
U
Se viene specificato initialValue, viene usato come valore iniziale per avviare l'accumulo. La prima chiamata alla funzione callbackfn fornisce questo valore come argomento anziché come valore di matrice.
Restituisce
U
Ereditato da Uint8Array.reduce
reduceRight((previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number)
Chiama la funzione di callback specificata per tutti gli elementi in una matrice, in ordine decrescente. Il valore restituito della funzione di callback è il risultato accumulato e viene fornito come argomento nella chiamata successiva alla funzione di callback.
function reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number
Parametri
- callbackfn
-
(previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number
Funzione che accetta fino a quattro argomenti. Il metodo reduceRight chiama la funzione callbackfn una volta per ogni elemento nella matrice.
Restituisce
number
Ereditato da Uint8Array.reduceRight
reduceRight((previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, number)
function reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number
Parametri
- callbackfn
-
(previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number
- initialValue
-
number
Restituisce
number
Ereditato da Uint8Array.reduceRight
reduceRight<U>((previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, U)
Chiama la funzione di callback specificata per tutti gli elementi in una matrice, in ordine decrescente. Il valore restituito della funzione di callback è il risultato accumulato e viene fornito come argomento nella chiamata successiva alla funzione di callback.
function reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U
Parametri
- callbackfn
-
(previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U
Funzione che accetta fino a quattro argomenti. Il metodo reduceRight chiama la funzione callbackfn una volta per ogni elemento nella matrice.
- initialValue
-
U
Se viene specificato initialValue, viene usato come valore iniziale per avviare l'accumulo. La prima chiamata alla funzione callbackfn fornisce questo valore come argomento anziché come valore di matrice.
Restituisce
U
Ereditato da Uint8Array.reduceRight
reverse()
Inverte gli elementi in una matrice.
function reverse(): Uint8Array
Restituisce
Uint8Array
ereditato da Uint8Array.reverse
set(ArrayLike<number>, number)
Imposta un valore o una matrice di valori.
function set(array: ArrayLike<number>, offset?: number)
Parametri
- array
-
ArrayLike<number>
Matrice tipizzata o non tipizzata di valori da impostare.
- offset
-
number
Indice nella matrice corrente in cui devono essere scritti i valori.
Ereditato da Uint8Array.set
some((value: number, index: number, array: Uint8Array) => boolean, any)
Determina se la funzione di callback specificata restituisce true per qualsiasi elemento di una matrice.
function some(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean
Parametri
- callbackfn
-
(value: number, index: number, array: Uint8Array) => boolean
Funzione che accetta fino a tre argomenti. Il metodo chiama la funzione callbackfn per ogni elemento in array1 fino a quando il callbackfn non restituisce true o fino alla fine della matrice.
- thisArg
-
any
Oggetto a cui la parola chiave può fare riferimento nella funzione callbackfn. Se thisArg viene omesso, come valore viene usato undefined.
Restituisce
boolean
ereditato da Uint8Array.some
sort((a: number, b: number) => number)
Ordina una matrice.
function sort(compareFn?: (a: number, b: number) => number): this
Parametri
- compareFn
-
(a: number, b: number) => number
Nome della funzione utilizzata per determinare l'ordine degli elementi. Se omesso, gli elementi vengono ordinati in ordine crescente, ASCII.
Restituisce
this
ereditato da Uint8Array.sort
subarray(number, number)
Ottiene una nuova visualizzazione Uint8Array dell'archivio ArrayBuffer per questa matrice, facendo riferimento agli elementi all'inizio, inclusi, fino alla fine, esclusivi.
function subarray(begin: number, end?: number): Uint8Array
Parametri
- begin
-
number
Indice dell'inizio della matrice.
- end
-
number
Indice della fine della matrice.
Restituisce
Uint8Array
Ereditato da Uint8Array.subarray
toLocaleString()
Converte un numero in una stringa utilizzando le impostazioni locali correnti.
function toLocaleString(): string
Restituisce
string
Ereditato da Uint8Array.toLocaleString