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

Method fromByteStringToArray

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

Source from the content-addressed store, hash-verified

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

Callers 12

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

Calls

no outgoing calls

Tested by

no test coverage detected