LibuvSharp
LibuvSharp copied to clipboard
Multiple connections use single CopyingByteBufferAllocator instances?
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); }
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.