protected void writeBody(NetworkDataRepresentation ndr) { int maxTransmitFragment = getMaxTransmitFragment(); int maxReceiveFragment = getMaxReceiveFragment(); ndr.writeUnsignedShort((maxTransmitFragment == -1) ? ndr.getBuffer().getCapacity() : maxTransmitFragment); ndr.writeUnsignedShort((maxReceiveFragment == -1) ? ndr.getBuffer().getCapacity() : maxReceiveFragment); ndr.writeUnsignedLong(getAssociationGroupId()); PresentationContext[] contextList = getContextList(); int count = contextList.length; ndr.writeUnsignedSmall((short) count); for (int i = 0; i < count; i++) { contextList[i].write(ndr); } }
protected void writeBody ( NetworkDataRepresentation ndr ) { int maxTransmitFragment = getMaxTransmitFragment (); int maxReceiveFragment = getMaxReceiveFragment (); ndr.writeUnsignedShort ( ( maxTransmitFragment == -1 ) ? ndr.getBuffer ().getCapacity () : maxTransmitFragment ); ndr.writeUnsignedShort ( ( maxReceiveFragment == -1 ) ? ndr.getBuffer ().getCapacity () : maxReceiveFragment ); ndr.writeUnsignedLong ( getAssociationGroupId () ); PresentationContext[] contextList = getContextList (); int count = contextList.length; ndr.writeUnsignedSmall ( (short)count ); for ( int i = 0; i < count; i++ ) { contextList[i].write ( ndr ); } }
protected void writeBody(NetworkDataRepresentation ndr) { int maxTransmitFragment = getMaxTransmitFragment(); int maxReceiveFragment = getMaxReceiveFragment(); ndr.writeUnsignedShort((maxTransmitFragment == -1) ? ndr.getBuffer().getCapacity() : maxTransmitFragment); ndr.writeUnsignedShort((maxReceiveFragment == -1) ? ndr.getBuffer().getCapacity() : maxReceiveFragment); ndr.writeUnsignedLong(getAssociationGroupId()); PresentationContext[] contextList = getContextList(); int count = contextList.length; ndr.writeUnsignedSmall((short) count); for (int i = 0; i < count; i++) { contextList[i].write(ndr); } }