tuweni / org.apache.tuweni.scuttlebutt.rpc / RPCFlag

RPCFlag

interface RPCFlag (source)

Defines constants for dealing with SecureScuttlebutt RPC flags.

Types

BodyType

class BodyType : RPCFlag

Flag to set a RPC body type.

EndOrError

class EndOrError : RPCFlag

Flag to set an end or error message.

Stream

class Stream : RPCFlag

Flag to set a stream message.

Functions

apply

open fun apply(flagsByte: Byte): Byte

Applies the flag to the byte

isApplied

open fun isApplied(flagsByte: Byte): Boolean

Checks if the flag bit is applied to this byte

value

abstract fun value(): Int

The value of the flag

Inheritors

BodyType

class BodyType : RPCFlag

Flag to set a RPC body type.

EndOrError

class EndOrError : RPCFlag

Flag to set an end or error message.

Stream

class Stream : RPCFlag

Flag to set a stream message.