It mean if case 11 then process all, if 10 than all instead above, etc.?
And what about rest operations? Indexes are valid? 256 multiply is required?
Don't worry with 256: Multiplying with 256 is the same as shifting left 8 bits.
You must invent some construct for the C-Case, bcse the Delphi case has implicit C-"break"s. Perhaps like:
Delphi-Quellcode:
if length = 11 then ...
if length >= 10 then ...
if length >= 9 then ...
...