DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
Also could we use the attribute concept sebastian for the endianess for the encoding. So the default would be UTF-8, but it could be changed with "encoding='UTF-16'".
Cleaning up the code-generation
Especially for Java the templates have been becoming more and more complex. Especially when we would be adding all of the "byte order setting" this would become quite unmaintainable.
| Code Block |
|---|
// Simple Types
int apple = simpleFieldWrapper(() -> readBuffer.readUnsignedByte("IntegerEncoding", 4), WithByteOrder(ByteOrder.LITTLE_ENDIAN))
// Complex Type
Banana banana = simpleFieldWrapper(() -> readBuffer.readUnsignedByte("IntegerEncoding", 4), WithByteOrder(ByteOrder.LITTLE_ENDIAN), WithContext("banana"))
// Optional Fields
Banana banana = optionalFieldWrapper(() -> readBuffer.readUnsignedByte("IntegerEncoding", 4), (apple > 10) , WithByteOrder(ByteOrder.LITTLE_ENDIAN), WithContext("banana"))
... |