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

BodyType

class BodyType : RPCFlag (source)

Flag to set a RPC body type.

Enum Values

BINARY

UTF_8_STRING

JSON

Functions

extractBodyType

static fun extractBodyType(flagByte: Byte): BodyType

Extract the body type from a flag byte

isApplied

fun isApplied(flagByte: Byte): Boolean

value

fun value(): Int

Inherited Functions

apply

open fun apply(flagsByte: Byte): Byte

Applies the flag to the byte