public void decode ( NetworkDataRepresentation ndr, NdrBuffer src ) throws NdrException { majorVersion = src.dec_ndr_small (); minorVersion = src.dec_ndr_small (); } }
public void decode(NetworkDataRepresentation ndr, NdrBuffer src) throws NdrException { majorVersion = src.dec_ndr_small(); minorVersion = src.dec_ndr_small(); } }
public void decode(NetworkDataRepresentation ndr, NdrBuffer src) throws NdrException { majorVersion = src.dec_ndr_small(); minorVersion = src.dec_ndr_small(); } }
public boolean readBoolean() { return buf.dec_ndr_small() == 0 ? false : true; } public void writeBoolean(boolean value) {
public int readUnsignedSmall() { return buf.dec_ndr_small(); } public int readUnsignedShort() {
public boolean readBoolean() { return buf.dec_ndr_small() == 0 ? false : true; } public void writeBoolean(boolean value) {
public boolean readBoolean () { return buf.dec_ndr_small () == 0 ? false : true; }
public int readUnsignedSmall () { return buf.dec_ndr_small (); }
public int readUnsignedSmall() { return buf.dec_ndr_small(); } public int readUnsignedShort() {
public void decode ( NetworkDataRepresentation ndr, NdrBuffer src ) { src.align ( 4 ); authenticationService = src.dec_ndr_small (); protectionLevel = src.dec_ndr_small (); src.dec_ndr_small (); // padding count contextId = src.dec_ndr_long (); System.arraycopy ( src.getBuffer (), src.getIndex (), body, 0, body.length ); src.index += body.length; }
public void decode(NetworkDataRepresentation ndr, NdrBuffer src) { src.align(4); authenticationService = src.dec_ndr_small(); protectionLevel = src.dec_ndr_small(); src.dec_ndr_small(); // padding count contextId = src.dec_ndr_long(); System.arraycopy(src.getBuffer(), src.getIndex(), body, 0, body.length); src.index += body.length; }
public void decode(NetworkDataRepresentation ndr, NdrBuffer src) { src.align(4); authenticationService = src.dec_ndr_small(); protectionLevel = src.dec_ndr_small(); src.dec_ndr_small(); // padding count contextId = src.dec_ndr_long(); System.arraycopy(src.getBuffer(), src.getIndex(), body, 0, body.length); src.index += body.length; }
public void decode(NetworkDataRepresentation ndr, NdrBuffer src) throws NdrException { timeLow = src.dec_ndr_long(); timeMid = src.dec_ndr_short(); timeHighAndVersion = src.dec_ndr_short(); clockSeqHighAndReserved = src.dec_ndr_small(); clockSeqLow = src.dec_ndr_small(); System.arraycopy(src.buf, src.index, node, 0, 6); src.index += 6; } /*
public void decode(NetworkDataRepresentation ndr, NdrBuffer src) throws NdrException { timeLow = src.dec_ndr_long(); timeMid = src.dec_ndr_short(); timeHighAndVersion = src.dec_ndr_short(); clockSeqHighAndReserved = src.dec_ndr_small(); clockSeqLow = src.dec_ndr_small(); System.arraycopy(src.buf, src.index, node, 0, 6); src.index += 6; } /*
@Override public void decode ( final NetworkDataRepresentation ndr, final NdrBuffer src ) throws NdrException { this.timeLow = src.dec_ndr_long (); this.timeMid = src.dec_ndr_short (); this.timeHighAndVersion = src.dec_ndr_short (); this.clockSeqHighAndReserved = src.dec_ndr_small (); this.clockSeqLow = src.dec_ndr_small (); System.arraycopy ( src.buf, src.index, this.node, 0, 6 ); src.index += 6; }
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);
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);
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); } }
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 ); } }