Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit be50cf7

Browse files
committed
Append head-bytes to unfinishedByteArray of any packet
Fixes #10
1 parent d294331 commit be50cf7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/de/kaleidox/vban/packet/VBANPacket.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public class VBANPacket<T> implements ByteArray {
2525
private VBANPacket(VBANPacketHead<T> head) {
2626
this.head = head;
2727
this.unfinishedByteArray = new UnfinishedByteArray(MAX_SIZE, true);
28+
29+
unfinishedByteArray.append(head.getBytes());
2830
}
2931

3032
public VBANPacket(VBANPacketHead<T> head, byte[] data) {

0 commit comments

Comments
 (0)