Home
last modified time | relevance | path

Searched refs:Uint8Array (Results 1 – 25 of 107) sorted by relevance

12345

/expo/packages/expo-image/build/utils/thumbhash/
H A Dthumbhash.d.ts9 export declare function rgbaToThumbHash(w: number, h: number, rgba: Uint8Array): Uint8Array;
16 export declare function thumbHashToRGBA(hash: Uint8Array): {
19 rgba: Uint8Array;
27 export declare function thumbHashToAverageRGBA(hash: Uint8Array): {
39 export declare function thumbHashToApproximateAspectRatio(hash: Uint8Array): number;
50 export declare function rgbaToDataURL(w: number, h: number, rgba: Uint8Array): string;
58 export declare function thumbHashToDataURL(hash: Uint8Array): string;
/expo/packages/expo-random/src/
H A DExpoRandom.web.ts5 getRandomBytes(length: number): Uint8Array {
6 const array = new Uint8Array(length);
10 async getRandomBytesAsync(length: number): Promise<Uint8Array> {
11 const array = new Uint8Array(length);
H A DRandom.ts34 export function getRandomBytes(byteCount: number): Uint8Array {
41 const array = new Uint8Array(validByteCount);
65 export async function getRandomBytesAsync(byteCount: number): Promise<Uint8Array> {
/expo/packages/expo-crypto/src/
H A DExpoCrypto.web.ts28 return btoa(String.fromCharCode(...new Uint8Array(hashedData)));
32 getRandomBytes(length: number): Uint8Array {
33 const array = new Uint8Array(length);
36 async getRandomBytesAsync(length: number): Promise<Uint8Array> {
37 const array = new Uint8Array(length);
52 const byteArray = new Uint8Array(buffer);
H A DCrypto.ts27 export function getRandomBytes(byteCount: number): Uint8Array {
33 const array = new Uint8Array(validByteCount);
57 export async function getRandomBytesAsync(byteCount: number): Promise<Uint8Array> {
213 const output = new Uint8Array(digestLengths[algorithm]);
/expo/packages/expo-auth-session/src/
H A DPKCE.ts6 function getRandomValues(input: Uint8Array): Uint8Array {
9 if (input.byteLength !== input.length) input = new Uint8Array(input.buffer);
18 function convertBufferToString(buffer: Uint8Array): string {
32 const buffer = new Uint8Array(size);
/expo/packages/expo-crypto/build/
H A DExpoCrypto.web.js19 return btoa(String.fromCharCode(...new Uint8Array(hashedData)));
24 const array = new Uint8Array(length);
28 const array = new Uint8Array(length);
42 const byteArray = new Uint8Array(buffer);
H A DExpoCrypto.web.d.ts6 getRandomBytes(length: number): Uint8Array;
7 getRandomBytesAsync(length: number): Promise<Uint8Array>;
H A DCrypto.d.ts11 export declare function getRandomBytes(byteCount: number): Uint8Array;
18 export declare function getRandomBytesAsync(byteCount: number): Promise<Uint8Array>;
/expo/packages/expo-random/build/
H A DRandom.d.ts8 export declare function getRandomBytes(byteCount: number): Uint8Array;
15 export declare function getRandomBytesAsync(byteCount: number): Promise<Uint8Array>;
H A DExpoRandom.web.d.ts3 getRandomBytes(length: number): Uint8Array;
4 getRandomBytesAsync(length: number): Promise<Uint8Array>;
H A DExpoRandom.web.js6 const array = new Uint8Array(length);
11 const array = new Uint8Array(length);
H A DExpoRandom.web.js.map1Uint8Array {\n const array = new Uint8Array(length);\n // @ts-ignore\n return (window.cry…
/expo/packages/expo-standard-web-crypto/src/
H A DgetRandomValues.ts7 | Uint8Array
30 !(values instanceof Uint8Array) &&
60 const byteView = new Uint8Array(values.buffer, values.byteOffset, values.byteLength);
/expo/apps/test-suite/tests/
H A DRandom.js11 expect(bytes instanceof Uint8Array).toBe(true);
19 expect(bytes instanceof Uint8Array).toBe(true);
/expo/packages/expo-standard-web-crypto/build/
H A DgetRandomValues.js15 !(values instanceof Uint8Array) &&
39 const byteView = new Uint8Array(values.buffer, values.byteOffset, values.byteLength);
/expo/packages/expo-modules-core/ios/Swift/TypedArrays/
H A DTypedArray.swift18 case .Uint8Array: in create()
19 return Uint8Array(jsTypedArray) in create()
/expo/ios/versioned/sdk48/ExpoModulesCore/ios/Swift/TypedArrays/
H A DTypedArray.swift18 case .Uint8Array: in create()
19 return Uint8Array(jsTypedArray) in create()
/expo/ios/versioned/sdk47/ExpoModulesCore/ios/Swift/TypedArrays/
H A DTypedArray.swift18 case .Uint8Array: in create()
19 return Uint8Array(jsTypedArray) in create()
/expo/ios/versioned/sdk49/ExpoModulesCore/ios/Swift/TypedArrays/
H A DTypedArray.swift18 case .Uint8Array: in create()
19 return Uint8Array(jsTypedArray) in create()
/expo/packages/expo-image/src/utils/thumbhash/
H A Dthumbhash.ts12 export function rgbaToThumbHash(w: number, h: number, rgba: Uint8Array) {
114 return new Uint8Array(hash);
123 export function thumbHashToRGBA(hash: Uint8Array) {
163 const rgba = new Uint8Array(w * h * 4),
218 export function thumbHashToAverageRGBA(hash: Uint8Array) {
243 export function thumbHashToApproximateAspectRatio(hash: Uint8Array) {
262 export function rgbaToDataURL(w: number, h: number, rgba: Uint8Array) {
373 export function thumbHashToDataURL(hash: Uint8Array): string {
385 const hash = Uint8Array.from(atob(thumbhash), (c) => c.charCodeAt(0));
/expo/packages/@expo/config/build/
H A DConfig.types.d.ts57 iosBundle: string | Uint8Array;
61 androidBundle: string | Uint8Array;
/expo/packages/@expo/config/src/
H A DConfig.types.ts52 iosBundle: string | Uint8Array;
56 androidBundle: string | Uint8Array;
/expo/packages/expo-standard-web-crypto/src/__tests__/
H A DgetRandomValues-test.ts11 ['Uint8Array', Uint8Array],
59 ['Uint8Array', Uint8Array],
/expo/packages/@expo/cli/src/export/
H A DprintBundleSizes.ts12 const files: [string, string | Uint8Array][] = [];
43 export function createFilesTable(files: [string, string | Uint8Array][]): string {

12345