Implemented handling of different argument types (int, wstring, short) for BOF files using specific prefixes.

This commit is contained in:
Jakob Friedl
2025-08-30 14:05:09 +02:00
parent 4ceb756cfd
commit 8292a5b1ff
5 changed files with 66 additions and 15 deletions

View File

@@ -125,6 +125,8 @@ proc getArgument*(unpacker: Unpacker): TaskArg =
result.data = unpacker.getBytes(int(length))
of INT:
result.data = unpacker.getBytes(4)
of SHORT:
result.data = unpacker.getBytes(2)
of LONG:
result.data = unpacker.getBytes(8)
of BOOL:

View File

@@ -19,9 +19,10 @@ type
ArgType* = enum
STRING = 0'u8
INT = 1'u8
LONG = 2'u8
BOOL = 3'u8
BINARY = 4'u8
SHORT = 2'u8
LONG = 3'u8
BOOL = 4'u8
BINARY = 5'u8
HeaderFlags* = enum
# Flags should be powers of 2 so they can be connected with or operators