Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Serialization > API/Runtime/Core/Serialization/ValidateCompactBinary
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Serialization/CompactBinaryValidation.h |
| Include | #include "Serialization/CompactBinaryValidation.h" |
| Source | /Engine/Source/Runtime/Core/Private/Serialization/CompactBinaryValidation.cpp |
ECbValidateError ValidateCompactBinary
(
FMemoryView View,
ECbValidateMode Mode,
ECbFieldType Type
)
Remarks
Validate the compact binary data for one field in the view as specified by the mode flags.
Only one top-level field is processed from the view, and validation recurses into any array or object within that field. To validate multiple consecutive top-level fields, call the function once for each top-level field. If the given view might contain multiple top-level fields, then either exclude the Padding flag from the Mode or use MeasureCompactBinary to break up the view into its constituent fields before validating. None on success, otherwise the flags for the types of errors that were detected.
Parameters
| Name | Description |
|---|---|
| View | A memory view containing at least one top-level field. |
| Mode | A combination of the flags for the types of validation to perform. |
| Type | HasFieldType means that View contains the type. Otherwise, use the given type. |