Get remaining from null checked buffer
@param buffer The buffer to get the remaining from, in flush mode. @return 0 if the buffer is null, else the bytes remaining in the buffer.
See Implementation
Get remaining from null checked buffer
@param buffer The buffer to get the remaining from, in flush mode. @return 0 if the buffer is null, else the bytes remaining in the buffer.