diff --git a/openbook/src/main/java/com/mmorrell/openbook/model/AnyNode.java b/openbook/src/main/java/com/mmorrell/openbook/model/AnyNode.java index 4d32738..ef70eb3 100644 --- a/openbook/src/main/java/com/mmorrell/openbook/model/AnyNode.java +++ b/openbook/src/main/java/com/mmorrell/openbook/model/AnyNode.java @@ -22,8 +22,8 @@ public static List readAnyNodes(byte[] data) { byte newTag = data[offset]; offset += 1; - byte[] newData = Arrays.copyOfRange(data, offset, offset + 7); - offset += 7; + byte[] newData = Arrays.copyOfRange(data, offset, offset + 87); + offset += 87; nodes.add( AnyNode.builder() diff --git a/openbook/src/main/java/com/mmorrell/openbook/model/OrderTreeNodes.java b/openbook/src/main/java/com/mmorrell/openbook/model/OrderTreeNodes.java index eed1805..374daec 100644 --- a/openbook/src/main/java/com/mmorrell/openbook/model/OrderTreeNodes.java +++ b/openbook/src/main/java/com/mmorrell/openbook/model/OrderTreeNodes.java @@ -30,7 +30,7 @@ public static OrderTreeNodes readOrderTreeNodes(byte[] data) { .freeListHead(OpenBookUtil.readInt32(data, 12)) .nodes( AnyNode.readAnyNodes( - Arrays.copyOfRange(data, 16, data.length) + Arrays.copyOfRange(data, 16 + 512, data.length) ) ) .build();