ByteString

scalus.builtin.ByteString
See theByteString companion class
object ByteString extends ByteStringApi

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ByteString.type

Members list

Type members

Classlikes

final implicit class StringInterpolators(val sc: StringContext) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any

Inherited classlikes

object given_Decoder_ByteString extends Decoder[ByteString]

Attributes

Inherited from:
ByteStringApi
Supertypes
trait Decoder[ByteString]
class Object
trait Matchable
class Any
object given_Encoder_ByteString extends Encoder[ByteString]

Attributes

Inherited from:
ByteStringApi
Supertypes
trait Encoder[ByteString]
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(bytes: Byte*): ByteString
def fill(size: Int, byte: Byte): ByteString
def fromArray(bytes: Array[Byte]): ByteString
def fromHex(bytes: String): ByteString
def fromString(s: String): ByteString
def unsafeFromArray(bytes: Array[Byte]): ByteString

Concrete fields

Givens

Inherited givens

Extensions

Extensions

extension (sc: StringContext)
def hex(args: Any*): ByteString

Hex string interpolator

Hex string interpolator

Attributes

Example
val hexString = hex"deadbeef"
val withSpaces = hex"de ad be ef"
val upperCase = hex"DEADBEEF"

Implicits

Implicits

final implicit def StringInterpolators(sc: StringContext): StringInterpolators