Пример #1
0
 /// <summary>
 /// Allocate a new buffer with the specified capacity
 /// using the default allocator
 /// </summary>
 /// <param name="capacity">Desired capacity</param>
 /// <returns>The new buffer</returns>
 public static ByteBuffer Allocate(int capacity)
 {
     return(_allocator.Allocate(capacity));
 }