Skip to content

FrameNotify[A: Any val]

[Source]

Callback interface for FrameDecoder. Receives complete decoded values and errors from the streaming frame extraction loop.

interface ref FrameNotify[A: Any val]

Public Functions

frame_received

[Source]

Called when a complete frame has been decoded from the stream.

fun ref frame_received(
  value: A)
: None val

Parameters

  • value: A

Returns


frame_error

[Source]

Called when the decoder encounters structurally invalid data.

fun ref frame_error(
  err: MalformedData val)
: None val

Parameters

Returns