TopicWindowKey

org.sigilaris.node.gossip.GossipCursorModel$package.TopicWindowKey

Companion for TopicWindowKey providing parsing and construction.

Attributes

Source
GossipCursorModel.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def fromBytes(bytes: ByteVector): Either[String, TopicWindowKey]

Creates a topic window key from raw bytes.

Creates a topic window key from raw bytes.

Value parameters

bytes

the byte content

Attributes

Returns

the key, or an error if empty

Source
GossipCursorModel.scala
def fromHex(value: String): Either[String, TopicWindowKey]

Parses a hex-encoded topic window key.

Parses a hex-encoded topic window key.

Value parameters

value

the hex string

Attributes

Returns

the key, or an error message

Source
GossipCursorModel.scala
def unsafeFromBytes(bytes: ByteVector): TopicWindowKey

Creates a topic window key from raw bytes, throwing on invalid input.

Creates a topic window key from raw bytes, throwing on invalid input.

Value parameters

bytes

the byte content

Attributes

Returns

the key

Throws
IllegalArgumentException

if the bytes are empty

Source
GossipCursorModel.scala
def unsafeFromHex(value: String): TopicWindowKey

Parses a hex-encoded topic window key, throwing on invalid input.

Parses a hex-encoded topic window key, throwing on invalid input.

Value parameters

value

the hex string

Attributes

Returns

the key

Throws
IllegalArgumentException

if the hex is invalid or empty

Source
GossipCursorModel.scala

Givens

Givens

Extensions

Extensions

extension (windowKey: TopicWindowKey)
def bytes: ByteVector

Attributes

Source
GossipCursorModel.scala
def toHexLower: String

Attributes

Source
GossipCursorModel.scala