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

Method fromUint8Array

packages/firebase-firestore/index.ios.ts:1313–1321  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

1311 }
1312
1313 static fromUint8Array(array) {
1314 if (!(array instanceof Uint8Array)) {
1315 throw new Error('Bytes.fromUint8Array expects an instance of Uint8Array');
1316 }
1317
1318 const nsData = new Bytes();
1319 nsData._native = NSData.dataWithData(array as any);
1320 return nsData;
1321 }
1322
1323 toBase64(): string {
1324 return this.native.base64EncodedStringWithOptions(NSDataBase64EncodingOptions.Encoding64CharacterLineLength);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected