MCPcopy Create free account
hub / github.com/awslabs/llrt / allocUnsafeSlow

Method allocUnsafeSlow

types/buffer.d.ts:314–314  ·  view source on GitHub ↗

* Allocates a new `Buffer` of `size` bytes. * * The underlying memory for `Buffer` instances created in this way is _not_ * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize * such `Buffer` inst

(size: number)

Source from the content-addressed store, hash-verified

312 * @param size The desired length of the new `Buffer`.
313 */
314 allocUnsafeSlow(size: number): Buffer;
315 }
316 interface Buffer extends Uint8Array {
317 /**

Callers 1

buffer.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected