Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Optional attributes would be passed with var-arg parameters at the end. 

Code Block
     // simple Fall
    lalala = readOptionalField("lalala",  dataReaderUnsignedInt( ....), something == true)

    // Enum Fall // TODO: chris magic trick is to use the function pointer of the enum parse static method
    lalala = readOptionalField("lalala", enumReader(TypeOfHurz::enumForValue, dataReaderUnsignedIntCreatorDingels( ... readBuffer ....)),  something == true, withAdditonasdl(), withEncoding(), withFickiciy())

    // Complex Fall // TODO: chris magic trick is to use a supplier lambda for the staticParse
    lalala = readOptionalField("lalala", complexTypeReader(()->TypeOfHurz.staticParseIwas(readBuffer, asdasdasdasd, asdasd), readBuffer),  something == true)