package nl.gmta.btrfs.structure.stream;

public abstract class BtrfsStreamCommand extends BtrfsStreamElement {
    private final int length;

    public BtrfsStreamCommand(int length) {
        this.length = length;
    }

    public int getLength() {
        return this.length;
    }
}

@@ -133,16 +133,87 @@
  length;
+%0A    private final BtrfsCommandType command;%0A    private final int crc;
 %0A%0A    pu
@@ -246,16 +246,51 @@
 t length
+, BtrfsCommandType command, int crc
 ) %7B%0A    
@@ -311,24 +311,80 @@
 h = length;%0A
+        this.command = command;%0A        this.crc = crc;%0A
     %7D%0A%0A    p
@@ -440,11 +440,148 @@
 h;%0A    %7D
+%0A%0A    public BtrfsCommandType getCommand() %7B%0A        return this.command;%0A    %7D%0A%0A    public int getCrc() %7B%0A        return this.crc;%0A    %7D
 %0A%7D%0A

add command type and CRC value