Lines Matching defs:buf
258 final byte[] buf = new byte[MAX_STATUS];
259 status = readCommStatus(fd, buf);
735 final byte[] buf = getOrCreateStatusBuffer();
738 Memory.pokeInt(buf, writePtr, status, ByteOrder.BIG_ENDIAN);
743 final int len = Math.min(rawMsg.length, buf.length - writePtr);
744 System.arraycopy(rawMsg, 0, buf, writePtr, len);
749 Os.write(mCommFd, buf, 0, writePtr);
764 private static Status readCommStatus(FileDescriptor comm, byte[] buf) {
767 final int n = Os.read(comm, buf, 0, buf.length);
772 final int status = Memory.peekInt(buf, 0, ByteOrder.BIG_ENDIAN);
774 final String msg = new String(buf, 4, n - 4);