Searched refs:FastDataOutput (Results 1 – 4 of 4) sorted by relevance
42 public class FastDataOutput implements DataOutput, Flushable, Closeable { class47 private static AtomicReference<FastDataOutput> sOutCache = new AtomicReference<>();63 public FastDataOutput(@NonNull OutputStream out, int bufferSize) { in FastDataOutput() method in FastDataOutput79 public static FastDataOutput obtain(@NonNull OutputStream out) { in obtain()80 FastDataOutput instance = sOutCache.getAndSet(null); in obtain()85 return new FastDataOutput(out, BUFFER_SIZE); in obtain()
100 private FastDataOutput mOut;127 mOut = FastDataOutput.obtain(os); in setOutput()
91 try (FastDataOutput out = new FastDataOutput(new ByteArrayOutputStream(), BOUNCE_SIZE)) { in testUTF_Bounds()123 final FastDataOutput out = new FastDataOutput(outStream, BOUNCE_SIZE); in testTranscode()358 private static void doBounce(@NonNull ThrowingConsumer<FastDataOutput> out, in doBounce()363 private static void doBounce(@NonNull ThrowingConsumer<FastDataOutput> out, in doBounce()366 final FastDataOutput outData = new FastDataOutput(outStream, BOUNCE_SIZE); in doBounce()
67 final FastDataOutput out = FastDataOutput.obtain(os); in timeWrite_Local()