java - compare ByteBuffer contents? -
what's easiest way in java compare contents of 2 bytebuffers check equality?
you check equals() method too.
tells whether or not buffer equal object.
two byte buffers equal if, , if,
- they have same element type,
 - they have same number of remaining elements, ,
 - the 2 sequences of remaining elements, considered independently of starting positions, pointwise equal.
 a byte buffer not equal other type of object.
Comments
Post a Comment