ReplaceData
status_t ReplaceData(const char *name, type_code type,
status_t ReplaceData(const char *name, type_code type, int32 index,
status_t ReplaceData(const char* name, type_code type,
status_t ReplaceData(const char* name, type_code type,
return ReplaceData(name, typeCode, 0, &val, sizeof(type)); \
return ReplaceData(name, typeCode, index, &val, sizeof(type)); \
return ReplaceData(name, B_STRING_TYPE, 0, string, strlen(string) + 1);
return ReplaceData(name, B_STRING_TYPE, index, string, strlen(string) + 1);
return ReplaceData(name, B_STRING_TYPE, 0, string.String(),
return ReplaceData(name, B_STRING_TYPE, index, string.String(),
return ReplaceData(name, B_POINTER_TYPE, 0, &pointer, sizeof(pointer));
return ReplaceData(name, B_POINTER_TYPE, index, &pointer, sizeof(pointer));
return ReplaceData(name, B_MESSENGER_TYPE, 0, &messenger,
return ReplaceData(name, B_MESSENGER_TYPE, index, &messenger,
error = ReplaceData(name, B_REF_TYPE, index, &buffer, size);
error = ReplaceData(name, B_MESSAGE_TYPE, index, &buffer, size);
error = ReplaceData(name, object->TypeCode(), index, &buffer, size);
return ReplaceData(name, type, 0, data, numBytes);
return ReplaceData(name, typeCode, 0, &value, sizeof(type)); \
return ReplaceData(name, typeCode, index, &value, sizeof(type)); \
return ReplaceData(name, B_ALIGNMENT_TYPE, 0, data, sizeof(data));
return ReplaceData(name, B_ALIGNMENT_TYPE, index, data, sizeof(data));
return ReplaceData(name, B_STRING_TYPE, 0, string, strlen(string) + 1);
return ReplaceData(name, B_STRING_TYPE, index, string, strlen(string) + 1);
return ReplaceData(name, B_STRING_TYPE, 0, string.String(),
return ReplaceData(name, B_STRING_TYPE, index, string.String(),
return ReplaceData(name, B_POINTER_TYPE, 0, &pointer, sizeof(pointer));
return ReplaceData(name, B_POINTER_TYPE, index, &pointer, sizeof(pointer));
return ReplaceData(name, B_MESSENGER_TYPE, 0, &messenger,
return ReplaceData(name, B_MESSENGER_TYPE, index, &messenger,
error = ReplaceData(name, B_REF_TYPE, index, buffer, size);
error = ReplaceData(name, B_NODE_REF_TYPE, index, buffer, size);
error = ReplaceData(name, B_MESSAGE_TYPE, index, &buffer, size);
error = ReplaceData(name, object->TypeCode(), index, &buffer, size);
return ReplaceData(name, type, 0, data, numBytes);
if (ReplaceData(name, type, data, numBytes) == B_OK)
status_t ret = ReplaceData(name, type, data, numBytes);
return ReplaceData(name, type, 0, data, numBytes);
return ReplaceData(name, type, 0, data, numBytes);