LibuvSharp icon indicating copy to clipboard operation
LibuvSharp copied to clipboard

Multiple connections use single CopyingByteBufferAllocator instances?

Open beetlex-io opened this issue 7 years ago • 1 comments

UVStream

ByteBufferAllocatorBase allocator; public ByteBufferAllocatorBase ByteBufferAllocator { get { return allocator ?? Loop.ByteBufferAllocator; } set { allocator = value; } } public void Resume() { CheckDisposed(); int r = uv_read_start(NativeHandle, ByteBufferAllocator.AllocCallback, read_cb); Ensure.Success(r); }

beetlex-io avatar Jun 16 '17 10:06 beetlex-io

Yeah they do, you can assign your own bytebufferallocator, for every handler and loop.

This one just creates a new buffer and copies the contents to it, so everyone can use it.

txdv avatar Jul 07 '17 08:07 txdv