public static ByteBuffer CreateNew(int bufferSize, Pool <ByteBuffer> pool) { return(new ByteBuffer(bufferSize, pool)); }
private ByteBuffer(int bufferSize, Pool <ByteBuffer> pool) { _pool = pool ?? throw new ArgumentNullException(nameof(pool)); array = new byte[bufferSize]; }