--- a
+++ b/project/device_b032fdcd/plc_logic_4bbe9722/application_8e35a463/fb_tests_91fe9bff/stack_377cdbf4/fb_payload_2aa27ef8/fb_payload_testsuite_bc77255a/pool_f109f7ae/test_claimnextfreebody_4b2d8213/4b2d821314f943c48a745b32976777c4.object
@@ -0,0 +1 @@
+{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)4b2d8213-14f9-43c4-8a74-5b32976777c4","ParentGuid":"(Guid)bc77255a-b8a1-4530-b798-1a47c64f0504","Name":"(string)Test_ClaimNextFreeBody","Properties":{"@Type":"2c41fa04:IDictionary","@Value":[{"@Key":"(Guid)829a18f2-c514-4f6e-9634-1df173429203","@Value":{"@Type":"829a18f2","@Value":{"ParentObjects":{"@Type":"fa2ee218:IDictionary","@Value":[{"@Key":"(Guid)d9b2b2cc-ea99-4c3b-aa42-1e5c49e65b84","@Value":"(Guid)f109f7ae-5c5f-4638-b861-d0331955f9a9"}]}}}}]},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","829a18f2":"{829a18f2-c514-4f6e-9634-1df173429203}","fa2ee218":"{fa2ee218-a39b-4b6d-b249-49dbddbd168a}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)440","Tag":null,"Text":"(string)IF counit.TEST_ORDERED(__POUNAME()) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)441","Tag":null,"Text":"(string)\t// no body"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)442","Tag":null,"Text":"(string)\tinstFB_Payload("}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)443","Tag":null,"Text":"(string)\t\txDecode:= , "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)444","Tag":null,"Text":"(string)\t\txEncode:= , "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)445","Tag":null,"Text":"(string)\t\tmyBodyPool:= 0, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)446","Tag":null,"Text":"(string)\t\tmyBodyPoolSize:= 0, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)447","Tag":null,"Text":"(string)\t\tprotobufBlobSize:= BlobSize, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)448","Tag":null,"Text":"(string)\t\tmyProtobufBlob:= SomeBlob);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)449","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)450","Tag":null,"Text":"(string)\teError := instFB_Payload.ClaimNextFreeBody(    numberBytesRequested := 1,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)451","Tag":null,"Text":"(string)\t\tnumberBytesClaimed => BytesClaimed,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)452","Tag":null,"Text":"(string)\t\tStartIndex => StartIndex);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)453","Tag":null,"Text":"(string)\t\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)454","Tag":null,"Text":"(string)\tAssertEquals(Expected:= Expected_PayloadNotEnoughBodyPool, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)455","Tag":null,"Text":"(string)\t\tActual:= eError, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)456","Tag":null,"Text":"(string)\t\tMessage:= 'Wrong error when requesting body, when the payload has no body');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)457","Tag":null,"Text":"(string)\tAssertEquals_DINT(Expected:= 0, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)458","Tag":null,"Text":"(string)\t\tActual:= BytesClaimed, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)459","Tag":null,"Text":"(string)\t\tMessage:= 'numberBytesClaimed is not zero when the payload has no body');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)460","Tag":null,"Text":"(string)\tAssertEquals_DINT(Expected:= 0, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)461","Tag":null,"Text":"(string)\t\tActual:= StartIndex, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)462","Tag":null,"Text":"(string)\t\tMessage:= 'StartIndex is not zero when the payload has no body');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)463","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)464","Tag":null,"Text":"(string)\t// 257 ByteBody"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)465","Tag":null,"Text":"(string)\tinstFB_Payload("}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)466","Tag":null,"Text":"(string)\t\txDecode:= , "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)467","Tag":null,"Text":"(string)\t\txEncode:= , "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)468","Tag":null,"Text":"(string)\t\tmyBodyPool:= ADR(SomeBody), "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)469","Tag":null,"Text":"(string)\t\tmyBodyPoolSize:= SIZEOF(SomeBody), "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)470","Tag":null,"Text":"(string)\t\tprotobufBlobSize:= BlobSize, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)471","Tag":null,"Text":"(string)\t\tmyProtobufBlob:= SomeBlob);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)472","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)473","Tag":null,"Text":"(string)\t// request the first byte"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)474","Tag":null,"Text":"(string)\teError := instFB_Payload.ClaimNextFreeBody(    numberBytesRequested := 1,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)475","Tag":null,"Text":"(string)\t\tnumberBytesClaimed => BytesClaimed,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)476","Tag":null,"Text":"(string)\t\tStartIndex => StartIndex);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)477","Tag":null,"Text":"(string)\t\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)478","Tag":null,"Text":"(string)\tAssertEquals(Expected:= Expected_NoError, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)479","Tag":null,"Text":"(string)\t\tActual:= eError, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)480","Tag":null,"Text":"(string)\t\tMessage:= 'Wrong error when requesting 1 byte, when the payload has 257 free bytes');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)481","Tag":null,"Text":"(string)\tAssertEquals_DINT(Expected:= 1, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)482","Tag":null,"Text":"(string)\t\tActual:= BytesClaimed, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)483","Tag":null,"Text":"(string)\t\tMessage:= 'Wrong numberBytesClained requesting 1 byte, when the payload has 257 free bytes');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)484","Tag":null,"Text":"(string)\tAssertEquals_DINT(Expected:= 0, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)485","Tag":null,"Text":"(string)\t\tActual:= StartIndex, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)486","Tag":null,"Text":"(string)\t\tMessage:= 'StartIndex is not zero, for the first body bytes requested');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)487","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)488","Tag":null,"Text":"(string)\t// request 257 Bytes"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)489","Tag":null,"Text":"(string)\teError := instFB_Payload.ClaimNextFreeBody(    numberBytesRequested := 257,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)490","Tag":null,"Text":"(string)\t\tnumberBytesClaimed => BytesClaimed,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)491","Tag":null,"Text":"(string)\t\tStartIndex => StartIndex);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)492","Tag":null,"Text":"(string)\t\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)493","Tag":null,"Text":"(string)\tAssertEquals(Expected:= Expected_PayloadNotEnoughBodyPool, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)494","Tag":null,"Text":"(string)\t\tActual:= eError, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)495","Tag":null,"Text":"(string)\t\tMessage:= 'Wrong error when requesting body, when the payload has not enough body left');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)496","Tag":null,"Text":"(string)\tAssertEquals_DINT(Expected:= 0, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)497","Tag":null,"Text":"(string)\t\tActual:= BytesClaimed, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)498","Tag":null,"Text":"(string)\t\tMessage:= 'numberBytesClaimed is not zero when the payload has not enough body left');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)499","Tag":null,"Text":"(string)\tAssertEquals_DINT(Expected:= 0, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)500","Tag":null,"Text":"(string)\t\tActual:= StartIndex, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)501","Tag":null,"Text":"(string)\t\tMessage:= 'StartIndex is not zero when the payload has no not enough body left');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)502","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)503","Tag":null,"Text":"(string)\t// request the remaining 256 bytes\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)504","Tag":null,"Text":"(string)\teError := instFB_Payload.ClaimNextFreeBody(    numberBytesRequested := 256,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)505","Tag":null,"Text":"(string)\t\tnumberBytesClaimed => BytesClaimed,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)506","Tag":null,"Text":"(string)\t\tStartIndex => StartIndex);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)507","Tag":null,"Text":"(string)\t\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)508","Tag":null,"Text":"(string)\tAssertEquals(Expected:= Expected_NoError, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)509","Tag":null,"Text":"(string)\t\tActual:= eError, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)510","Tag":null,"Text":"(string)\t\tMessage:= 'Wrong error when requesting 256 byte, when the payload has 256 free bytes');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)511","Tag":null,"Text":"(string)\tAssertEquals_DINT(Expected:= 256, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)512","Tag":null,"Text":"(string)\t\tActual:= BytesClaimed, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)513","Tag":null,"Text":"(string)\t\tMessage:= 'Wrong numberBytesClaimed requesting 256 byte, when the payload has 256 free bytes');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)514","Tag":null,"Text":"(string)\tAssertEquals_DINT(Expected:= 1, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)515","Tag":null,"Text":"(string)\t\tActual:= StartIndex, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)516","Tag":null,"Text":"(string)\t\tMessage:= 'StartIndex is not 1, for a successful request where 1 byte had already been claimed');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)517","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)518","Tag":null,"Text":"(string)\tTEST_FINISHED();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)227","Tag":null,"Text":"(string)END_IF"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)428","Tag":null,"Text":"(string)METHOD PRIVATE Test_ClaimNextFreeBody"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)429","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)430","Tag":null,"Text":"(string)\tinstFB_Payload : SPStack.FB_Payload;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)431","Tag":null,"Text":"(string)\tSomeBody : ARRAY [0..256] OF BYTE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)432","Tag":null,"Text":"(string)\tSomeBlob : ARRAY [0..1] OF BYTE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)433","Tag":null,"Text":"(string)\tBlobSize : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)434","Tag":null,"Text":"(string)\tBytesClaimed: DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)435","Tag":null,"Text":"(string)\tStartIndex: DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)436","Tag":null,"Text":"(string)\teError: SPStack.ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)437","Tag":null,"Text":"(string)\tExpected_PayloadNotEnoughBodyPool : SPStack.ERROR := SPStack.ERROR.PayloadNotEnoughBodyPool;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)438","Tag":null,"Text":"(string)\tExpected_NoError : SPStack.ERROR := SPStack.ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)439","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","Tag":null,"Text":"(string)"}}]}}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a5de0b0b":"{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","long":"System.Int64","string":"System.String"}}},"FormatVersion":"1.0"}
\ No newline at end of file