// Writes an object reference to the stream. private void WriteObjectRef(NameInfo nameInfo, long objectId) => _serWriter.WriteMemberObjectRef(nameInfo, (int)objectId);