Implemented profile embedding via patching a placeholder in the agent executable. Agent correctly deserializes and parses the profile and listener configuration.
This commit is contained in:
@@ -69,6 +69,9 @@ proc init*(T: type Unpacker, data: string): Unpacker =
|
||||
result.stream = newStringStream(data)
|
||||
result.position = 0
|
||||
|
||||
proc getPosition*(unpacker: Unpacker): int =
|
||||
return unpacker.position
|
||||
|
||||
proc getUint8*(unpacker: Unpacker): uint8 =
|
||||
result = unpacker.stream.readUint8()
|
||||
unpacker.position += 1
|
||||
|
||||
Reference in New Issue
Block a user