fix(core): update
This commit is contained in:
@@ -28,7 +28,7 @@ export function isBufferLike(obj: any): obj is ArrayBufferLike | Buffer {
|
||||
return false;
|
||||
}
|
||||
|
||||
export function convertBufferToPureUint8Array(bufferArg: Buffer) {
|
||||
export function ensurePureUint8Array(bufferArg: Uint8Array | Buffer): Uint8Array {
|
||||
// Create a new Uint8Array with the same length as the buffer
|
||||
const uint8Array: Uint8Array = new Uint8Array(bufferArg.length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user