summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/uic/barcode/ssbFrame/SsbCommonTicketPart.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/uic/barcode/ssbFrame/SsbCommonTicketPart.java')
-rw-r--r--src/main/java/org/uic/barcode/ssbFrame/SsbCommonTicketPart.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/org/uic/barcode/ssbFrame/SsbCommonTicketPart.java b/src/main/java/org/uic/barcode/ssbFrame/SsbCommonTicketPart.java
index 9512fc1..0a158f3 100644
--- a/src/main/java/org/uic/barcode/ssbFrame/SsbCommonTicketPart.java
+++ b/src/main/java/org/uic/barcode/ssbFrame/SsbCommonTicketPart.java
@@ -46,14 +46,13 @@ public abstract class SsbCommonTicketPart extends SsbTicketPart {
return offset;
}
- protected int encodeCommonPart(byte[] bytes) {
+ protected int encodeCommonPart(byte[] bytes, int offset) {
BitBuffer bits = new ByteBitBuffer(bytes);
-
- int offset = 27; // header offset
+
bits.putInteger(offset,7, numberOfAdults);
offset = offset + 7;
- bits.putInteger(numberOfChildren,offset, 7);
+ bits.putInteger(offset, 7, numberOfChildren);
offset = offset + 7;
bits.put(offset,specimen);
offset++;