public Object next() { if (index >= stub.length) throw new NoSuchElementException(); FaultCoPdu fragment = (FaultCoPdu) FaultCoPdu.this.clone(); int allocation = stub.length - index; fragment.setAllocationHint(allocation); if (stubSize < allocation) allocation = stubSize; byte[] fragmentStub = new byte[allocation]; System.arraycopy(stub, index, fragmentStub, 0, allocation); fragment.setStub(fragmentStub); int flags = getFlags() & ~(PFC_FIRST_FRAG | PFC_LAST_FRAG); if (index == 0) flags |= PFC_FIRST_FRAG; index += allocation; if (index >= stub.length) flags |= PFC_LAST_FRAG; fragment.setFlags(flags); return fragment; }
public Object next() { if (index >= stub.length) throw new NoSuchElementException(); FaultCoPdu fragment = (FaultCoPdu) FaultCoPdu.this.clone(); int allocation = stub.length - index; fragment.setAllocationHint(allocation); if (stubSize < allocation) allocation = stubSize; byte[] fragmentStub = new byte[allocation]; System.arraycopy(stub, index, fragmentStub, 0, allocation); fragment.setStub(fragmentStub); int flags = getFlags() & ~(PFC_FIRST_FRAG | PFC_LAST_FRAG); if (index == 0) flags |= PFC_FIRST_FRAG; index += allocation; if (index >= stub.length) flags |= PFC_LAST_FRAG; fragment.setFlags(flags); return fragment; }
if (length > 0) { pdu.setStub(stub); pdu.setAllocationHint(length); } else { pdu.setStub(null); pdu.setAllocationHint(0);
if (length > 0) { pdu.setStub(stub); pdu.setAllocationHint(length); } else { pdu.setStub(null); pdu.setAllocationHint(0);
pdu.setAllocationHint ( length ); pdu.setAllocationHint ( 0 );
public Object next () { if ( index >= stub.length ) throw new NoSuchElementException (); FaultCoPdu fragment = (FaultCoPdu)FaultCoPdu.this.clone (); int allocation = stub.length - index; fragment.setAllocationHint ( allocation ); if ( stubSize < allocation ) allocation = stubSize; byte[] fragmentStub = new byte[allocation]; System.arraycopy ( stub, index, fragmentStub, 0, allocation ); fragment.setStub ( fragmentStub ); int flags = getFlags () & ~ ( PFC_FIRST_FRAG | PFC_LAST_FRAG ); if ( index == 0 ) flags |= PFC_FIRST_FRAG; index += allocation; if ( index >= stub.length ) flags |= PFC_LAST_FRAG; fragment.setFlags ( flags ); return fragment; }
protected void readBody(NetworkDataRepresentation ndr) { setAllocationHint(ndr.readUnsignedLong()); setContextId(ndr.readUnsignedShort()); setCancelCount(ndr.readUnsignedSmall()); setStatus((int) ndr.readUnsignedLong()); }
protected void readBody(NetworkDataRepresentation ndr) { setAllocationHint(ndr.readUnsignedLong()); setContextId(ndr.readUnsignedShort()); setCancelCount(ndr.readUnsignedSmall()); setStatus((int) ndr.readUnsignedLong()); }
protected void readBody ( NetworkDataRepresentation ndr ) { setAllocationHint ( ndr.readUnsignedLong () ); setContextId ( ndr.readUnsignedShort () ); setCancelCount ( ndr.readUnsignedSmall () ); setStatus ( (int)ndr.readUnsignedLong () ); }