Generally, fileoffset will be the end of the file when the entire file is loaded, otherwise it will be the end of the buffer, afaik.  I'm not really sure when `writableBytes` would be 0, so I probably have not tested this case.

-[Unknown]