(array)
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected