code: public void set(byte[] buff, int offset, int length){
          if(offset<0)
              throw new IndexOutOfBoundsException("ByteSequence index out of range: "+offset);
          if(length<0)
              throw new IndexOutOfBoundsException("ByteSequence index out of range: "+length);
          if(offset>buff.length-length)
              throw new StringIndexOutOfBoundsException("ByteSequence index out of range: "+(offset+length));
  
          this.buff = buff;
          this.offset = offset;
          this.length = length;
      }
docs: replaces the internal byte buffer with the given byte array.
  
  @param buff      Array that is the source of bytes
  @param offset    The initial offset
  @param length    The length