Hi Andrew,
That's probably a good idea, since that is what it does for the stringout record, and we are trying to make them behave the same.
Mark
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Johnson
Sent: Tuesday, July 26, 2016 9:40 AM
To: [email protected]
Subject: Re: Inconsistency in devAsynOctet for stringout and waveform records
Hi Mark,
On 07/25/2016 09:32 PM, Mark Rivers wrote:
> When waveform records are being used for strings the null is removed
> in drivers because the length they are passed with asynOctetWrite
> does not include the null. The length passed is NORD-1 if
> VAL[NORD-1] is 0.
If the waveform support is now intended explicitly for writing strings,
should it do an strlen() on the buffer and just send the characters
before first zero, which might appear even before VAL[NORD-1]?
Just a thought...
- Andrew
--
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon
- References:
- Inconsistency in devAsynOctet for stringout and waveform records Mark Rivers
- Re: Inconsistency in devAsynOctet for stringout and waveform records Eric Norum
- RE: Inconsistency in devAsynOctet for stringout and waveform records Mark Rivers
- Re: Inconsistency in devAsynOctet for stringout and waveform records Eric Norum
- RE: Inconsistency in devAsynOctet for stringout and waveform records Mark Rivers
- Re: Inconsistency in devAsynOctet for stringout and waveform records Eric Norum
- RE: Inconsistency in devAsynOctet for stringout and waveform records Mark Rivers
- Re: Inconsistency in devAsynOctet for stringout and waveform records Eric Norum
- RE: Inconsistency in devAsynOctet for stringout and waveform records Mark Rivers
- Re: Inconsistency in devAsynOctet for stringout and waveform records Torsten Bögershausen
- RE: Inconsistency in devAsynOctet for stringout and waveform records Mark Rivers
- Re: Inconsistency in devAsynOctet for stringout and waveform records Andrew Johnson
- Navigate by Date:
- Prev:
Re: Inconsistency in devAsynOctet for stringout and waveform records Andrew Johnson
- Next:
streamdevice question geyang
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Inconsistency in devAsynOctet for stringout and waveform records Andrew Johnson
- Next:
Re: Inconsistency in devAsynOctet for stringout and waveform records Torsten Bögershausen
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
|