Por ejemplo, puedes crear una matriz de enteros de 8 bits que comparta el mismo ArrayBuffer con una matriz de enteros de 32 bits a partir de los mismos datos.
For example, you could create an 8-bit integer array that shares the same ArrayBuffer as an existing 32-bit integer array from the same data.
Retorna el ArrayBuffer con la referencia del Uint8Array.
Devuelve un nuevo ArrayBuffer cuyo contenido se toma de los datos de oldBuffer y luego es truncado o extendido por cero por newByteLength.
Returns a new ArrayBuffer whose contents are taken from the oldBuffer's data and then is either truncated or zero-extended by newByteLength.
Como con todos los constructores, puedes modificar el prototipo del constructor para aplicar cambios sobre todas las instancias de ArrayBuffer.
As with all constructors, you can change the constructor's prototype object to make changes to all ArrayBuffer instances.
Permite añadir propiedades a todos los objetos ArrayBuffer. Métodos
Allows the addition of properties to all ArrayBuffer objects. Methods
Las instancias de ArrayBuffer heredan de ArrayBuffer.prototype.
All ArrayBuffer instances inherit from ArrayBuffer.prototype.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple