Home
last modified time | relevance | path

Searched refs:initialCapacity (Results 1 – 6 of 6) sorted by relevance

/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/transport/layered/
DTFastFramedTransport.java36 private final int initialCapacity; field in TFastFramedTransport.Factory
43 public Factory(int initialCapacity) { in Factory() argument
44 this(initialCapacity, TConfiguration.DEFAULT_MAX_FRAME_SIZE); in Factory()
47 public Factory(int initialCapacity, int maxLength) { in Factory() argument
48 this.initialCapacity = initialCapacity; in Factory()
54 return new TFastFramedTransport(trans, initialCapacity, maxLength); in getTransport()
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/transport/
DAutoExpandingBufferWriteTransport.java43 TConfiguration config, int initialCapacity, int frontReserve) throws TTransportException { in AutoExpandingBufferWriteTransport() argument
45 if (initialCapacity < 1) { in AutoExpandingBufferWriteTransport()
48 if (frontReserve < 0 || initialCapacity < frontReserve) { in AutoExpandingBufferWriteTransport()
51 this.buf = new AutoExpandingBuffer(initialCapacity); in AutoExpandingBufferWriteTransport()
DAutoExpandingBuffer.java32 public AutoExpandingBuffer(int initialCapacity) { in AutoExpandingBuffer() argument
33 this.array = new byte[initialCapacity]; in AutoExpandingBuffer()
DAutoExpandingBufferReadTransport.java31 public AutoExpandingBufferReadTransport(TConfiguration config, int initialCapacity) in AutoExpandingBufferReadTransport() argument
34 this.buf = new AutoExpandingBuffer(initialCapacity); in AutoExpandingBufferReadTransport()
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/protocol/
DShortStack.java35 public ShortStack(int initialCapacity) { in ShortStack() argument
36 vector = new short[initialCapacity]; in ShortStack()
/thrift-3.4.0/lib/netstd/Thrift/Transport/Client/
DTMemoryBufferTransport.cs34 public TMemoryBufferTransport(TConfiguration config, int initialCapacity = 2048) in TMemoryBufferTransport() argument
37 Bytes = new byte[initialCapacity]; in TMemoryBufferTransport()