MCPcopy Create free account
hub / github.com/NativeScript/firebase / fromUint8Array

Method fromUint8Array

packages/firebase-firestore/index.android.ts:1467–1475  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

1465 }
1466
1467 static fromUint8Array(array) {
1468 if (!(array instanceof Uint8Array)) {
1469 throw new Error('Bytes.fromUint8Array expects an instance of Uint8Array');
1470 }
1471
1472 const bytes = new Bytes();
1473 bytes._native = com.google.firebase.firestore.Blob.fromBytes(Array.from(array));
1474 return bytes;
1475 }
1476
1477 _base64: string;
1478 toBase64(): string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected