Home
last modified time | relevance | path

Searched refs:capacityHint (Results 1 – 7 of 7) sorted by relevance

/external/grpc-grpc-java/cronet/src/main/java/io/grpc/cronet/
DCronetWritableBufferAllocator.java37 public WritableBuffer allocate(int capacityHint) { in allocate() argument
38 capacityHint = Math.min(MAX_BUFFER, capacityHint); in allocate()
39 return new CronetWritableBuffer(ByteBuffer.allocateDirect(capacityHint), capacityHint); in allocate()
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DNettyWritableBufferAllocator.java49 public WritableBuffer allocate(int capacityHint) { in allocate() argument
50 capacityHint = Math.min(MAX_BUFFER, Math.max(MIN_BUFFER, capacityHint)); in allocate()
51 return new NettyWritableBuffer(allocator.buffer(capacityHint, capacityHint)); in allocate()
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/
DOkHttpWritableBufferAllocator.java47 public WritableBuffer allocate(int capacityHint) { in allocate() argument
48 capacityHint = Math.min(MAX_BUFFER, Math.max(MIN_BUFFER, capacityHint)); in allocate()
49 return new OkHttpWritableBuffer(new Buffer(), capacityHint); in allocate()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DWritableBufferAllocator.java29 WritableBuffer allocate(int capacityHint); in allocate() argument
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DAbstractServerStreamTest.java62 public WritableBuffer allocate(int capacityHint) {
63 return new ByteWritableBuffer(capacityHint);
DMessageFramerTest.java465 public WritableBuffer allocate(int capacityHint) {
467 return new ByteWritableBuffer(Math.min(maxSize, Math.max(capacityHint, minSize)));
DAbstractClientStreamTest.java94 public WritableBuffer allocate(int capacityHint) {
95 return new ByteWritableBuffer(capacityHint);