public void encodeOctetString(byte tb[],int tag,int tboffset,int length) throws EncodeException {
  encodeByte(tag);
  encodeLength(length);
  if (length > 0) {
    ensureFreeBytes(length);
    System.arraycopy(tb,tboffset,buf,offset,length);
    offset+=length;
  }
}

public void encodeOctetString ( byte tb [ ] , int tag , int tboffset , int length ) throws EncodeException { encodeByte ( tag ) ; encodeLength ( length ) ; if ( length > 0 ) { ensureFreeBytes ( length ) ; System . arraycopy ( tb , tboffset , buf , offset , length ) ; offset += length ; } }
encodes a portion of an octet string and a tag .
