Skip to content

MalformedData

[Source]

Returned when a decode operation encounters structurally invalid data.

Unlike InsufficientData, this indicates the data itself is wrong — a literal mismatch, an unknown tag, or a value that violates a protocol constraint. No amount of additional data will fix it.

class val MalformedData

Constructors

create

[Source]

new val create(
  message': String val,
  bit_offset': USize val = 0)
: MalformedData val^

Parameters

Returns


Public Functions

message

[Source]

fun box message()
: String val

Returns


bit_offset

[Source]

fun box bit_offset()
: USize val

Returns


string

[Source]

fun box string()
: String iso^

Returns