@protobufjs/pool

A general purpose buffer pool.

Usage no npm install needed!

<script type="module">
  import protobufjsPool from 'https://cdn.skypack.dev/@protobufjs/pool';
</script>

README

@protobufjs/pool

npm

A general purpose buffer pool.

API

  • pool(alloc: function(size: number): Uint8Array, slice: function(this: Uint8Array, start: number, end: number): Uint8Array, [size=8192: number]): function(size: number): Uint8Array
    Creates a pooled allocator.

License: BSD 3-Clause License