mirror of
https://github.com/aziascreations/PB-MessagePack.git
synced 2026-11-24 18:28:44 +01:00
Added examples, Added performance tests, Updated readme
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user