public synchronized List<String> getArguments() { if(arguments!=null) return arguments; arguments = new ArrayList<String>(argc); if (argc == 0) { return arguments; } int psize = b64 ? 8 : 4; Memory m = new Memory(psize); try { if(LOGGER.isLoggable(FINER)) LOGGER.finer("Reading "+getFile("as")); int fd = LIBC.open(getFile("as").getAbsolutePath(), 0); try { for( int n=0; n<argc; n++ ) { // read a pointer to one entry LIBC.pread(fd, m, new NativeLong(psize), new NativeLong(argp+n*psize)); long addr = b64 ? m.getLong(0) : to64(m.getInt(0)); arguments.add(readLine(fd, addr, "argv["+ n +"]")); } } finally { LIBC.close(fd); } } catch (IOException | LastErrorException e) { // failed to read. this can happen under normal circumstances (most notably permission denied) // so don't report this as an error. } arguments = Collections.unmodifiableList(arguments); return arguments; }
long addr = b64 ? m.getLong(0) : to64(m.getInt(0)); if (addr == 0) // completed the walk break;
@Override public Object readFrom(Memory buffer, Class<?> type) { return buffer.getLong(0); } @Override public Memory bufferForResult(Object methodCallResult) {
private long getLongSockopt(int option) { Memory value = new Memory(Long.SIZE / 8); LongByReference length = new LongByReference(Long.SIZE / 8); zmq.zmq_getsockopt(ptr, option, value, length); return value.getLong(0); }
private long getLongSockopt(int option) { Memory value = new Memory(Long.SIZE / 8); LongByReference length = new LongByReference(Long.SIZE / 8); zmq.zmq_getsockopt(ptr, option, value, length); return value.getLong(0); }
private long getLongSockopt(int option) { Memory value = new Memory(Long.SIZE / 8); LongByReference length = new LongByReference(Long.SIZE / 8); zmq.zmq_getsockopt(ptr, option, value, length); return value.getLong(0); }
private long getLongSockopt(int option) { Memory value = new Memory(Long.SIZE / 8); LongByReference length = new LongByReference(Long.SIZE / 8); zmq.zmq_getsockopt(ptr, option, value, length); return value.getLong(0); }
public synchronized List<String> getArguments() { if(arguments!=null) return arguments; arguments = new ArrayList<String>(argc); if (argc == 0) { return arguments; } int psize = b64 ? 8 : 4; Memory m = new Memory(psize); try { if(LOGGER.isLoggable(FINER)) LOGGER.finer("Reading "+getFile("as")); int fd = LIBC.open(getFile("as").getAbsolutePath(), 0); try { for( int n=0; n<argc; n++ ) { // read a pointer to one entry LIBC.pread(fd, m, new NativeLong(psize), new NativeLong(argp+n*psize)); long addr = b64 ? m.getLong(0) : to64(m.getInt(0)); arguments.add(readLine(fd, addr, "argv["+ n +"]")); } } finally { LIBC.close(fd); } } catch (IOException | LastErrorException e) { // failed to read. this can happen under normal circumstances (most notably permission denied) // so don't report this as an error. } arguments = Collections.unmodifiableList(arguments); return arguments; }
long p = m.getLong(0);
long p = m.getLong(0);
m.setLong(0, 0); // just to make sure failed read won't result in bogus value CLibrary.INSTANCE.fread(m, 1, 8, fp); long p = m.getLong(0); args.add(readLine(fp, p));
long addr = b64 ? m.getLong(0) : to64(m.getInt(0)); if (addr == 0) // completed the walk break;
keyValues.put(nameString, byteData.getLong(0)); break;
keyValues.put(nameString, byteData.getLong(0)); break;
case kEdsDataType_Int64: //EdsInt64 case kEdsDataType_UInt64: //EdsUInt64 return (T) Long.valueOf( memory.getLong( 0 ) ); case kEdsDataType_Float: //EdsFloat return (T) Float.valueOf( memory.getFloat( 0 ) );
result = new Integer(byteData.getInt(0)); } else if (lpType.getValue() == WinNT.REG_QWORD) { result = new Long(byteData.getLong(0)); } else if (lpType.getValue() == WinNT.REG_BINARY) { result = byteData.getByteArray(0, lpcbData.getValue());
result = byteData.getInt(0); } else if (lpType.getValue() == WinNT.REG_QWORD) { result = byteData.getLong(0); } else if (lpType.getValue() == WinNT.REG_BINARY) { result = byteData.getByteArray(0, lpcbData.getValue());