ByteBuffer.wrap(array).getInt(offset)

Florian Weimer fweimer at redhat.com
Wed Aug 20 15:10:56 UTC 2014


Is there already a way to compute the expression in the subject without 
the ByteBuffer allocation?  I saw quite a few equivalent formulations in 
the OpenJDK sources, and perhaps it's time to add a standardized 
solution.  Should this go into DataInputStream, or java.lang.Integer and 
friends?

-- 
Florian Weimer / Red Hat Product Security



More information about the core-libs-dev mailing list