JulianFeinauer commented on issue #28: Type conversions for default byte array 
fiel item
URL: https://github.com/apache/incubator-plc4x/pull/28#issuecomment-427565323
 
 
   @sruehl so in theory could someone crazy enough decide to have different 
memory areas in its plc in different endianess??? Well... I'm not sure if I 
want to support communication with those people :)
   But back to topic, I would suggest to do it in the connection or in the 
request query (similar to what we do in S7 like "/0/0:LE" and have a default 
like BE then we are flexible enough.
   What I want to avoid (and I'm pretty sure @chrisdutz is with me in this 
regard is to have the users think about this stuff like do a 
   `if (x.isBE) {
    return x.getLongBE()
   }`
   This looks horrible.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to