plc4x-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christofer Dutz <>
Subject Re: PlcValues ... especially the Bit-String types
Date Fri, 16 Oct 2020 09:10:58 GMT
Hi Ben ... 

So do you want to merge your PR? It would really be useful to have that stuff in develop ...


Am 16.10.20, 10:16 schrieb "Ben Hutcheson" <>:

    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


    On Fri, Oct 16, 2020 at 3:44 AM Christofer Dutz <>

    > 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

View raw message