elharo commented on code in PR #566:
URL: https://github.com/apache/commons-io/pull/566#discussion_r1466548537
##########
src/main/java/org/apache/commons/io/EndianUtils.java:
##########
@@ -78,19 +84,20 @@ public static double readSwappedDouble(final InputStream
input) throws IOExcepti
}
/**
- * Reads a "float" value from a byte array at a given offset. The value is
- * converted to the opposed endian system while reading.
+ * Reads a little endian "float" value from a byte array at a given offset.
Review Comment:
Maybe. What's really confusing here is we need to distinguish two different
"floats":
1. The Java float primitive in memory in the VM.
2. A 4 byte chunk read from an input stream or an array.
I'm not sure I've got this distinction clear enough yet. Let me play with it
a bit more.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]