The result is catenated from P_LONG and the extra data associated with P_LONG. Actual objects may redefine Long() as they please to.
write(obj->Long());