add DataPool::bytesToWrite()