title: ByteBuffer allocate and allocateDirect
body: <p>I wondering when there is no memory available does allocateDirect and allocate from ByteBuffer will return null pointer or sth else ? (I was unable to find it in java docs). Thanks in advance.</p>