session: switched to uint64_t instead of size_t. Added offset/size read/write parameters.