Add debug information for ByteBuffer

This commit is contained in:
Eric Scharff 2007-10-30 14:55:00 -06:00
parent 67faa23d83
commit 958d39aa03

View File

@ -201,4 +201,8 @@ public class ByteBuffer {
if (position < 0 || position+amount > limit)
throw new IndexOutOfBoundsException();
}
public String toString() {
return "(ByteBuffer with array: " + array + " arrayOffset: " + arrayOffset + " position: " + position + " remaining; " + remaining() + ")";
}
}