Class Utf8View.ValidationResult
java.lang.Object
express.mvp.roray.utils.memory.Utf8View.ValidationResult
- Enclosing class:
Utf8View
Result of UTF-8 validation, containing error type and position if invalid.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Utf8View.ValidationResultSingleton for valid UTF-8 data (zero allocation for the common case). -
Method Summary
-
Field Details
-
VALID
Singleton for valid UTF-8 data (zero allocation for the common case).
-
-
Method Details
-
isValid
public boolean isValid()Returns true if the UTF-8 data is valid. -
error
Returns the error type, or null if valid. -
errorOffset
public long errorOffset()Returns the byte offset of the error within the view, or -1 if valid. -
toString
-