--- a +++ b/branches/FeatureBranches/refactorpayload/SparkplugB/Function Blocks/FB_Payload_1/FB_Payload_OLD/EncodeNextString/svnobj @@ -0,0 +1,31 @@ +Gx_l Î !0…jüoÍ +q'Ú Ù òüŒT S y s t e m . S t r i n g L{ f 8 a 5 8 4 6 6 - d 7 f 6 - 4 3 9 f - b b b 8 - d 4 6 0 0 e 4 1 d 0 9 9 } I m p l e m e n t a t i o n L{ 3 b 8 3 b 7 7 6 - f b 2 5 - 4 3 b 8 - 9 9 f 2 - 3 c 5 0 7 c 9 1 4 3 f c } T e x t D o c u m e n t L{ f 3 8 7 8 2 8 5 - 8 e 4 f - 4 9 0 b - b b 1 b - 9 a c b b 7 e b 0 4 d b } T e x t L i n e s L{ a 5 d e 0 b 0 b - 1 c b 5 - 4 9 1 3 - a c 2 1 - 9 d 7 0 2 9 3 e c 0 0 d } I d +l o n g T a g T e x t Œ/ / i w i l l s t a r t p o i n t i n g t o t h e f i r s t b y t e o f w h e r e t o s t o r e t h e v a r i n t L/ / T I P p r o t o b u f s t r i n g s a r e a l w a y s U T F 8 >s t a r t i n g B y t e O f E n c o d e d D a t a : = i ; €/ / E n c o d e s i z e i n b y t e s o f U T F 8 s t r i n g a s a v a r i n t ( w i l l b e m a x ) –S t r i n g E r r o r : = S T U . C o n v e r t U T F 1 6 t o U T F 8 ( s o u r c e S t a r t : = A D R ( V a l u e T o E n c o d e ) , ž t a r g e t S t a r t : = A D R ( m y P r o t o b u f B l o b [ i ] ) , È d w T a r g e t B u f f e r S i z e : = T O _ D W O R D ( _ p r o t o b u f B l o b U p p e r - i + 1 ) , ˆ b S t r i c t C o n v e r s i o n : = F A L S E ) ; ÚI F S t r i n g E r r o r <