BinaryEventStreamCodec
Binary codec for encoding and decoding streams of event envelopes in a compact frame format.
Each frame is length-prefixed and tagged with a version byte and kind byte, enabling efficient binary transport of gossip events over HTTP.
Attributes
- Source
- BinaryEventStreamCodec.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
Type members
Classlikes
Incremental decoder state for length-prefixed binary event frames.
Incremental decoder state for length-prefixed binary event frames.
Attributes
- Companion
- object
- Source
- BinaryEventStreamCodec.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- BinaryEventStreamCodec.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
DecoderState.type
Value members
Concrete methods
Decodes a binary frame byte array into a vector of event envelopes.
Decodes a binary frame byte array into a vector of event envelopes.
Type parameters
- A
-
the event payload type
Value parameters
- bytes
-
raw bytes to decode
Attributes
- Returns
-
the decoded event envelopes, or an error message
- Source
- BinaryEventStreamCodec.scala
Decodes all complete frames available after appending chunk.
Decodes all complete frames available after appending chunk.
Partial frame bytes are retained in the returned state. Call finishDecode when the byte stream ends to surface a truncated final frame.
Attributes
- Source
- BinaryEventStreamCodec.scala
Decodes exactly one complete length-prefixed binary frame.
Decodes exactly one complete length-prefixed binary frame.
Attributes
- Source
- BinaryEventStreamCodec.scala
Decodes an FS2 byte stream of length-prefixed frames incrementally.
Decodes an FS2 byte stream of length-prefixed frames incrementally.
Attributes
- Source
- BinaryEventStreamCodec.scala
Encodes a vector of event envelopes into a binary frame byte array.
Encodes a vector of event envelopes into a binary frame byte array.
Type parameters
- A
-
the event payload type
Value parameters
- events
-
event envelopes to encode
Attributes
- Returns
-
the encoded byte array, or an error message
- Source
- BinaryEventStreamCodec.scala
Encodes one event envelope as one length-prefixed binary frame.
Encodes one event envelope as one length-prefixed binary frame.
Attributes
- Source
- BinaryEventStreamCodec.scala
Encodes event envelopes to an FS2 byte stream of length-prefixed frames.
Encodes event envelopes to an FS2 byte stream of length-prefixed frames.
Attributes
- Source
- BinaryEventStreamCodec.scala
Validates that an incremental byte stream ended on a frame boundary.
Validates that an incremental byte stream ended on a frame boundary.
Attributes
- Source
- BinaryEventStreamCodec.scala
Concrete fields
Current binary framing protocol version.
Maximum allowed size in bytes for a single encoded event frame.
Maximum allowed size in bytes for a single encoded event frame.
Attributes
- Source
- BinaryEventStreamCodec.scala
MIME type for binary event stream responses.