411412413414415416417418419420421
p += 8; elements.add(new AbstractField<Crc16>(bits, StaticField.CRC, p, false) { public Crc16 getValue() throws IOException { Crc16 crc = readCrc16(); computeCrc16(crc); return crc; }});
63646566676869
protected short readShort(DataField field) { return (short) bits.getBits(offset + field.getOffset(), field.getLength()); } protected Crc16 readCrc16() { return new Crc16(bits.getBits(offset, 16)); }
67686970717273
protected Crc16 readCrc16() { return new Crc16(bits.getBits(offset, 16)); } protected Crc16 readCrc16(DataField field) { return new Crc16(bits.getBits(offset + field.getOffset(), field.getLength())); }