rename writeBufferFree() to availableForWrite()