public Iterator fragment(int size) { byte[] stub = getStub(); if (stub == null) { return Arrays.asList(new ResponseCoPdu[] { this }).iterator(); } //subtracting 8 bytes for authentication header and 16 for the authentication verifier size, someone forgot the //poor guys.. int stubSize = size - 24 - 8 - 16; if (stub.length <= stubSize) { return Arrays.asList(new ResponseCoPdu[] { this }).iterator(); } return new FragmentIterator(stubSize); }
public Iterator fragment(int size) { byte[] stub = getStub(); if (stub == null) { return Arrays.asList(new ResponseCoPdu[] { this }).iterator(); } //subtracting 8 bytes for authentication header and 16 for the authentication verifier size, someone forgot the //poor guys.. int stubSize = size - 24 - 8 - 16; if (stub.length <= stubSize) { return Arrays.asList(new ResponseCoPdu[] { this }).iterator(); } return new FragmentIterator(stubSize); }
public Iterator fragment ( int size ) { byte[] stub = getStub (); if ( stub == null ) { return Arrays.asList ( new ResponseCoPdu[] { this } ).iterator (); } //subtracting 8 bytes for authentication header and 16 for the authentication verifier size, someone forgot the //poor guys.. int stubSize = size - 24 - 8 - 16; if ( stub.length <= stubSize ) { return Arrays.asList ( new ResponseCoPdu[] { this } ).iterator (); } return new FragmentIterator ( stubSize ); }
protected void writeStub ( NetworkDataRepresentation ndr ) { ndr.getBuffer ().align ( 8, (byte)0 ); byte[] stub = getStub (); if ( stub != null ) ndr.writeOctetArray ( stub, 0, stub.length ); }
protected void writeStub(NetworkDataRepresentation ndr) { ndr.getBuffer().align(8, (byte) 0); byte[] stub = getStub(); if (stub != null) ndr.writeOctetArray(stub, 0, stub.length); }
protected void writeStub(NetworkDataRepresentation ndr) { ndr.getBuffer().align(8, (byte) 0); byte[] stub = getStub(); if (stub != null) ndr.writeOctetArray(stub, 0, stub.length); }
ndr.setFormat(reply.getFormat()); buffer = new NdrBuffer(((ResponseCoPdu) reply).getStub(), 0);
ndr.setFormat(reply.getFormat()); buffer = new NdrBuffer(((ResponseCoPdu) reply).getStub(), 0);
buffer = new NdrBuffer ( ( (ResponseCoPdu)reply ).getStub (), 0 );