Lines Matching defs:src
232 private final ByteBuffer src;
240 src = ByteBuffer.wrap(bytes);
244 if (!src.hasRemaining())
246 int nr = Math.min(src.remaining(), dst.remaining());
247 ByteBuffer s = src.duplicate();
250 src.position(src.position() + nr);
265 if (src.remaining() != 1)
266 throw new Failure("Source has " + src.remaining()
335 public int write(ByteBuffer src) {
336 int nr = Math.min(src.remaining(), dst.remaining());
337 ByteBuffer s = src.duplicate();
340 src.position(src.position() + nr);
452 static void testFrom(long seed, Source src, FileChannel fc, int off, int len)
455 show("From", src.name(), off, len);
464 int n = (int)fc.transferFrom(src.channel(), off, len);
470 src.verify();
492 sourceFile = File.createTempFile("xfer.src.", "");
530 Source src;
532 src = new UserSource(len, s);
534 src = new FileSource(len, s);
535 chName = src.name();
536 testFrom(s, src, fc, off, len);