Added examples, Added performance tests, Updated readme

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-11-03 16:51:37 +01:00
parent 3d259d363a
commit 9facb66ee8
44 changed files with 3295 additions and 32 deletions
@@ -1,8 +1,8 @@
; ------------------------------------------------------------------------------
;- Notes
; This example show you how to write, export and read a MessagePack buffer
; with implicitely typed variables whose format code is automatically
; This example shows you how to write, export and read a MessagePack buffer
; with implicitly typed variables whose format code is automatically
; resolved based on the given data.
@@ -92,8 +92,7 @@ EndIf
Debug "Encoded size: " + Str(MemorySize(*Buffer))
; It also gives ownership of the buffer to the obscure structure.
; And it is marked internally as read-only.
; Giving ownership of the buffer to the obscure structure.
*Reader = MsgPackWrapMsgBuffer(*Buffer, MemorySize(*Buffer), #True)
If Not *Reader
Debug "Failed to wrap the buffer !"
@@ -102,7 +101,6 @@ EndIf
; Getting data out of the MsgPack buffer.
OutputStruct.MyDataPacket
If Not DecodeMyDataPacket(*Reader, @OutputStruct)
Debug "Failed to decode the packet !"
End 5