Searched refs:directBuffer (Results 1 – 2 of 2) sorted by relevance
285 ByteBuffer directBuffer = ByteBuffer.allocateDirect(bufferSize); in testCopyWithDirectByteBuffer() local288 directBuffer.put(0, padValue); in testCopyWithDirectByteBuffer()289 directBuffer.put(directBuffer.limit() - 1, padValue); in testCopyWithDirectByteBuffer()292 directBuffer.position(pad); in testCopyWithDirectByteBuffer()293 bm1.copyPixelsToBuffer(directBuffer); in testCopyWithDirectByteBuffer()294 assertEquals(directBuffer.position(), in testCopyWithDirectByteBuffer()298 assertEquals(directBuffer.get(0), padValue); in testCopyWithDirectByteBuffer()299 assertEquals(directBuffer.get(directBuffer.limit() - 1), padValue); in testCopyWithDirectByteBuffer()302 directBuffer.position(pad); in testCopyWithDirectByteBuffer()304 bm2.copyPixelsFromBuffer(directBuffer); in testCopyWithDirectByteBuffer()[all …]
82 private static ThreadLocal<SoftReference<ByteBuffer>> directBuffer = field in IsValidUtf8TestUtil94 SoftReference<ByteBuffer> ref = directBuffer.get();98 directBuffer.set(new SoftReference<ByteBuffer>(buffer));