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

Method allocUnsafe

types/buffer.d.ts:282–282  ·  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 `Buffer.alloc()` instead to initialize`Buffer` instan

(size: number)

Source from the content-addressed store, hash-verified

280 * @param size The desired length of the new `Buffer`.
281 */
282 allocUnsafe(size: number): Buffer;
283 /**
284 * Allocates a new `Buffer` of `size` bytes.
285 *

Callers 1

buffer.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected