コード例 #1
0
 public static ByteBuffer CreateNew(int bufferSize, Pool <ByteBuffer> pool)
 {
     return(new ByteBuffer(bufferSize, pool));
 }
コード例 #2
0
        private ByteBuffer(int bufferSize, Pool <ByteBuffer> pool)
        {
            _pool = pool ?? throw new ArgumentNullException(nameof(pool));

            array = new byte[bufferSize];
        }