MCPcopy Create free account
hub / github.com/ShipSecAI/studio / toArrayBuffer

Method toArrayBuffer

packages/shared/src/secrets/encryption.ts:115–117  ·  view source on GitHub ↗
(view: ArrayBufferView)

Source from the content-addressed store, hash-verified

113 }
114
115 private static toArrayBuffer(view: ArrayBufferView): ArrayBuffer {
116 return view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength) as ArrayBuffer;
117 }
118}
119
120// Helper to prepare a 32-byte master key

Callers 2

encryptMethod · 0.80
decryptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected