Implemented handling of different argument types (int, wstring, short) for BOF files using specific prefixes.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user