MCPcopy Create free account
hub / github.com/bitwarden/clients / fromByteStringToArray

Method fromByteStringToArray

libs/common/src/platform/misc/utils.ts:149–158  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

147 }
148
149 static fromByteStringToArray(str: string): Uint8Array<ArrayBuffer> {
150 if (str == null) {
151 return null;
152 }
153 const arr = new Uint8Array(str.length);
154 for (let i = 0; i < str.length; i++) {
155 arr[i] = str.charCodeAt(i);
156 }
157 return arr;
158 }
159
160 static fromArrayToHex(arr: Uint8Array): string;
161 static fromArrayToHex(arr: null): null;

Callers 12

getK1Method · 0.80
getK1FromAccessTokenMethod · 0.80
fromJSONMethod · 0.80
generateAuthDataFunction · 0.80
createCredentialMethod · 0.80
assertCredentialMethod · 0.80
utils.spec.tsFile · 0.80
hashMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected