plc4x-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Hutcheson <ben.hut...@gmail.com>
Subject Re: PlcValues ... especially the Bit-String types
Date Fri, 16 Oct 2020 08:16:11 GMT
Hi Chris,

I have included a getBooleanArray() in each of the PlcBYTE, WORD, DWORD and
LWORD classes. The refactor PR should be ready.

Adding getBitLength and getBit methods seem like they could be useful.

kind Regards

Ben

On Fri, Oct 16, 2020 at 3:44 AM Christofer Dutz <christofer.dutz@c-ware.de>
wrote:

> Hi all,
>
> I’m currently working on porting the PlcValues to Go and here just
> stumbled over something.
> The PlcBYTE, PlcWORD, PlcDWORD seem to be integer values and not allow
> accessing the bool values as bit-fields.
> I know Ben is still working on his improvements … will this be covered
> here? Do you have an ETA on when you’ll be able to finish your work?
>
> Another Idea I had, was that we could add a getBitLength() and getBit(int
> bitIndex) methods to the PlcValue. Booleans are sort of the only types
> where the Boolean length differs from the length itself.
>
> What do you think?
>
> Chris
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message