Searched refs:initialBytes (Results 1 – 3 of 3) sorted by relevance
/external/guava/guava-tests/test/com/google/common/io/ |
D | SourceSinkFactories.java | 291 private final byte[] initialBytes; 293 private FileByteSinkFactory(@Nullable byte[] initialBytes) { 294 this.initialBytes = initialBytes; 300 if (initialBytes != null) { 303 out.write(initialBytes); 314 if (initialBytes == null) { 317 byte[] result = new byte[initialBytes.length + bytes.length]; 318 System.arraycopy(initialBytes, 0, result, 0, initialBytes.length); 319 System.arraycopy(bytes, 0, result, initialBytes.length, bytes.length);
|
/external/caliper/examples/src/main/java/examples/ |
D | CompressionSizeBenchmark.java | 62 byte[] initialBytes = toCompress.getBytes(); in compressionSize() 63 byte[] finalBytes = compress(initialBytes); in compressionSize() 64 compressionRatio = (double) initialBytes.length / (double) finalBytes.length; in compressionSize()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | GzipInflatingBufferTest.java | 118 int initialBytes = 100; in splitGzipStreamWorks() local 119 gzipInflatingBuffer.addGzippedBytes(ReadableBuffers.wrap(gzippedData, 0, initialBytes)); in splitGzipStreamWorks() 125 assertEquals(initialBytes, gzipInflatingBuffer.getAndResetBytesConsumed()); in splitGzipStreamWorks() 128 ReadableBuffers.wrap(gzippedData, initialBytes, gzippedData.length - initialBytes)); in splitGzipStreamWorks() 131 assertEquals(gzippedData.length - initialBytes, gzipInflatingBuffer.getAndResetBytesConsumed()); in splitGzipStreamWorks()
|