public void writeUnsignedShort ( int value ) { buf.enc_ndr_short ( value ); }
public void writeUnsignedShort(int value) { buf.enc_ndr_short(value); } public void writeUnsignedLong(int value) {
public void writeUnsignedShort(int value) { buf.enc_ndr_short(value); } public void writeUnsignedLong(int value) {
@Override public void encode ( final NetworkDataRepresentation ndr, final NdrBuffer dst ) throws NdrException { dst.enc_ndr_long ( this.timeLow ); dst.enc_ndr_short ( this.timeMid ); dst.enc_ndr_short ( this.timeHighAndVersion ); dst.enc_ndr_small ( this.clockSeqHighAndReserved ); dst.enc_ndr_small ( this.clockSeqLow ); System.arraycopy ( this.node, 0, dst.buf, dst.index, 6 ); dst.index += 6; }
public void encode(NetworkDataRepresentation ndr, NdrBuffer dst) throws NdrException { dst.enc_ndr_long(timeLow); dst.enc_ndr_short(timeMid); dst.enc_ndr_short(timeHighAndVersion); dst.enc_ndr_small(clockSeqHighAndReserved); dst.enc_ndr_small(clockSeqLow); System.arraycopy(node, 0, dst.buf, dst.index, 6); dst.index += 6; } public void decode(NetworkDataRepresentation ndr, NdrBuffer src) throws NdrException {
public void encode(NetworkDataRepresentation ndr, NdrBuffer dst) throws NdrException { dst.enc_ndr_long(timeLow); dst.enc_ndr_short(timeMid); dst.enc_ndr_short(timeHighAndVersion); dst.enc_ndr_small(clockSeqHighAndReserved); dst.enc_ndr_small(clockSeqLow); System.arraycopy(node, 0, dst.buf, dst.index, 6); dst.index += 6; } public void decode(NetworkDataRepresentation ndr, NdrBuffer src) throws NdrException {
protected void writeBody(NetworkDataRepresentation ndr) { NdrBuffer dst = ndr.getBuffer(); dst.enc_ndr_long(getAllocationHint()); dst.enc_ndr_short(getContextId()); dst.enc_ndr_short(getOpnum()); if (getFlag(PFC_OBJECT_UUID)) { try { getObject().encode(ndr, ndr.getBuffer()); } catch (NdrException ne) { }; } }
buffer.enc_ndr_short(length); buffer.enc_ndr_short(0); buffer.setIndex(length); if (logger.isLoggable(Level.FINEST))
protected void writeBody(NetworkDataRepresentation ndr) { NdrBuffer dst = ndr.getBuffer(); dst.enc_ndr_long(getAllocationHint()); dst.enc_ndr_short(getContextId()); dst.enc_ndr_short(getOpnum()); if (getFlag(PFC_OBJECT_UUID)) { try { getObject().encode(ndr, ndr.getBuffer()); } catch (NdrException ne) { }; } }
buffer.enc_ndr_short(length); buffer.enc_ndr_short(0); buffer.setIndex(length); if (logger.isLoggable(Level.FINEST))
buffer.enc_ndr_short ( length ); buffer.enc_ndr_short ( 0 ); buffer.setIndex ( length ); if ( logger.isLoggable ( Level.FINEST ) )
private AuthenticationVerifier detachAuthentication2(NdrBuffer buffer) throws IOException { try { //NdrBuffer buffer = ndr.getBuffer(); buffer.setIndex(ConnectionOrientedPdu.AUTH_LENGTH_OFFSET); int length = buffer.dec_ndr_short();//ndr.readUnsignedShort(); // auth body size int index = 20; buffer.setIndex(index); //exactly at the auth type. AuthenticationVerifier verifier = new AuthenticationVerifier(length); verifier.decode(ndr, buffer); buffer.setIndex(index + 2); // auth padding length = index - buffer.dec_ndr_small();//ndr.readUnsignedSmall(); buffer.setIndex(ConnectionOrientedPdu.FRAG_LENGTH_OFFSET); buffer.enc_ndr_short(length); buffer.enc_ndr_short(0); //ndr.writeUnsignedShort(length); //ndr.writeUnsignedShort(0); buffer.setIndex(length); return verifier; } catch (Exception ex) { throw new IOException("Error stripping authentication from PDU: " + ex); } }
private AuthenticationVerifier detachAuthentication2(NdrBuffer buffer) throws IOException { try { //NdrBuffer buffer = ndr.getBuffer(); buffer.setIndex(ConnectionOrientedPdu.AUTH_LENGTH_OFFSET); int length = buffer.dec_ndr_short();//ndr.readUnsignedShort(); // auth body size int index = 20; buffer.setIndex(index); //exactly at the auth type. AuthenticationVerifier verifier = new AuthenticationVerifier(length); verifier.decode(ndr, buffer); buffer.setIndex(index + 2); // auth padding length = index - buffer.dec_ndr_small();//ndr.readUnsignedSmall(); buffer.setIndex(ConnectionOrientedPdu.FRAG_LENGTH_OFFSET); buffer.enc_ndr_short(length); buffer.enc_ndr_short(0); //ndr.writeUnsignedShort(length); //ndr.writeUnsignedShort(0); buffer.setIndex(length); return verifier; } catch (Exception ex) { throw new IOException("Error stripping authentication from PDU: " + ex); } }
protected void writeBody ( NetworkDataRepresentation ndr ) { NdrBuffer dst = ndr.getBuffer (); dst.enc_ndr_long ( getAllocationHint () ); dst.enc_ndr_short ( getContextId () ); dst.enc_ndr_short ( getOpnum () ); if ( getFlag ( PFC_OBJECT_UUID ) ) { try { getObject ().encode ( ndr, ndr.getBuffer () ); } catch ( NdrException ne ) { } ; } }
private AuthenticationVerifier detachAuthentication2 ( NdrBuffer buffer ) throws IOException { try { //NdrBuffer buffer = ndr.getBuffer(); buffer.setIndex ( ConnectionOrientedPdu.AUTH_LENGTH_OFFSET ); int length = buffer.dec_ndr_short ();//ndr.readUnsignedShort(); // auth body size int index = 20; buffer.setIndex ( index ); //exactly at the auth type. AuthenticationVerifier verifier = new AuthenticationVerifier ( length ); verifier.decode ( ndr, buffer ); buffer.setIndex ( index + 2 ); // auth padding length = index - buffer.dec_ndr_small ();//ndr.readUnsignedSmall(); buffer.setIndex ( ConnectionOrientedPdu.FRAG_LENGTH_OFFSET ); buffer.enc_ndr_short ( length ); buffer.enc_ndr_short ( 0 ); //ndr.writeUnsignedShort(length); //ndr.writeUnsignedShort(0); buffer.setIndex ( length ); return verifier; } catch ( Exception ex ) { throw new IOException ( "Error stripping authentication from PDU: " + ex ); } }