You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2021/10/08 12:44:51 UTC

[plc4x] branch feature/mspec-ng updated: Changes by srhl62

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/mspec-ng
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/feature/mspec-ng by this push:
     new dd11804  Changes by srhl62
dd11804 is described below

commit dd11804b5d803bcacf3773ecd81201ec0f07bdf3
Author: cdutz <ch...@c-ware.de>
AuthorDate: Fri Oct 8 14:44:31 2021 +0200

    Changes by srhl62
---
 .../plc4x/java/spi/codegen/fields/FieldReaderSimple.java     |  2 +-
 .../org/apache/plc4x/java/spi/generation/WriteBuffer.java    | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/codegen/fields/FieldReaderSimple.java b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/codegen/fields/FieldReaderSimple.java
index 3c02c54..4b9faf3 100644
--- a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/codegen/fields/FieldReaderSimple.java
+++ b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/codegen/fields/FieldReaderSimple.java
@@ -29,4 +29,4 @@ public class FieldReaderSimple<T> implements FieldReader<T> {
         return switchByteOrderIfNecessary(() -> dataReader.read(logicalName, readerArgs), dataReader, extractByteOder(readerArgs).orElse(null));
     }
 
-}
+}
\ No newline at end of file
diff --git a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/generation/WriteBuffer.java b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/generation/WriteBuffer.java
index d81c429..d1c40df 100644
--- a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/generation/WriteBuffer.java
+++ b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/generation/WriteBuffer.java
@@ -105,16 +105,16 @@ public interface WriteBuffer {
         writeBigInteger("", bitLength, value);
     }
 
-    void writeFloat(String logicalName, float value, int bitsExponent, int bitsMantissa, WithWriterArgs... writerArgs) throws ParseException;
+    void writeFloat(String logicalName, int bitLength, float value, WithWriterArgs... writerArgs) throws ParseException;
 
-    default void writeFloat(float value, int bitsExponent, int bitsMantissa) throws ParseException {
-        writeFloat("", value, bitsExponent, bitsMantissa);
+    default void writeFloat(int bitLength, float value) throws ParseException {
+        writeFloat("", bitLength, value);
     }
 
-    void writeDouble(String logicalName, double value, int bitsExponent, int bitsMantissa, WithWriterArgs... writerArgs) throws ParseException;
+    void writeDouble(String logicalName, int bitLength, double value, WithWriterArgs... writerArgs) throws ParseException;
 
-    default void writeDouble(double value, int bitsExponent, int bitsMantissa) throws ParseException {
-        writeDouble("", value, bitsExponent, bitsMantissa);
+    default void writeDouble(int bitLength, double value) throws ParseException {
+        writeDouble("", bitLength, value);
     }
 
     void writeBigDecimal(String logicalName, int bitLength, BigDecimal value, WithWriterArgs... writerArgs) throws ParseException;