src/share/classes/com/sun/jndi/ldap/BerDecoder.java
Print this page
*** 40,50 ****
/**
* Creates a BER decoder that reads bytes from the specified buffer.
*/
public BerDecoder(byte buf[], int offset, int bufsize) {
! this.buf = buf;
this.bufsize = bufsize;
this.origOffset = offset;
reset();
}
--- 40,50 ----
/**
* Creates a BER decoder that reads bytes from the specified buffer.
*/
public BerDecoder(byte buf[], int offset, int bufsize) {
! this.buf = buf; // shared buffer, be careful to use this class
this.bufsize = bufsize;
this.origOffset = offset;
reset();
}