isEmpty

fun ByteBuffer?.isEmpty(): Boolean

Utility function to determine whether a buffer can be read from/written to.