2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 <2018> 2019 2020 2021 2022 2023 2024 2025 | Index | 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 <2018> 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Size encoding |
From: | Ralph Lange <[email protected]> |
To: | EPICS Core Talk <[email protected]> |
Date: | Tue, 15 May 2018 15:46:38 +0200 |
Else encode -2 as byte, size as signed 32-bit integerIf size < 2^8 - 2, encode size directly as byteIf size == -1, encode -1 as byte (what is this used for?)The implementation (C++) does [2]:If size < 2^63-1, encode -1 as byte, then a positive 32-bit int (which value? -1?), then size as a signed 64-bit integer.If size < 2^31-1, encode -1 as byte and then size as signed 32-bit integerIf size < 2^8-1, encode byte directlyThe spec says, basically [1]:Hi,I was taking a look at how messages are de/serialized by pvData and pvAccess and I think there is an inconsistency between the spec and the implementation regarding how sizes are encoded.