Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Serialization
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Serialization/CompactBinaryValidation.h |
| Include | #include "Serialization/CompactBinaryValidation.h" |
Syntax
enum ECbValidateError
{
None = 0,
OutOfBounds = 1 << 0,
InvalidType = 1 << 1,
DuplicateName = 1 << 2,
MissingName = 1 << 3,
ArrayName = 1 << 4,
InvalidString = 1 << 5,
InvalidInteger = 1 << 6,
InvalidFloat = 1 << 7,
NonUniformObject = 1 << 8,
NonUniformArray = 1 << 9,
Padding = 1 << 10,
InvalidPackageFormat = 1 << 11,
InvalidPackageHash = 1 << 12,
DuplicateAttachments = 1 << 13,
MultiplePackageObjects = 1 << 14,
NullPackageObject = 1 << 15,
NullPackageAttachment = 1 << 16,
}
Values
| Name | Description |
|---|---|
| None | The input had no validation errors. |
| OutOfBounds | The input cannot be read without reading out of bounds. |
| InvalidType | The input has a field with an unrecognized or invalid type. |
| DuplicateName | An object had more than one field with the same name. |
| MissingName | An object had a field with no name. |
| ArrayName | An array field had a name. |
| InvalidString | A name or string value is not valid UTF-8. |
| InvalidInteger | A size or integer value can be encoded in fewer bytes. |
| InvalidFloat | A float64 value can be encoded as a float32 without loss of precision. |
| NonUniformObject | An object has the same type for every field but is not uniform. |
| NonUniformArray | An array has the same type for every field and non-empty values but is not uniform. |
| Padding | A value did not use the entire memory view given for validation. |
| InvalidPackageFormat | The package or attachment had missing fields or fields out of order. |
| InvalidPackageHash | The object or an attachment did not match the hash stored for it. |
| DuplicateAttachments | The package contained more than one copy of the same attachment. |
| MultiplePackageObjects | The package contained more than one object. |
| NullPackageObject | The package contained an object with no fields. |
| NullPackageAttachment | The package contained a null attachment. |
Remarks
Flags for compact binary validation errors. Multiple flags may be combined.