public SinHashBlock(byte[] hashblock, int index) { this.spare = spare; byte[] offset = new byte[4]; byte[] length = new byte[4]; System.arraycopy(hashblock, 0, offset, 0, 4); System.arraycopy(hashblock, 4, length, 0, 4); boffset = BytesUtil.getLong(offset); blength = BytesUtil.getInt(length); hashsize = hashblock[8]; blockindex = index; }