ByteString

scalus.builtin.ByteString
See theByteString companion class
object ByteString

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

Value members

Concrete methods

def apply(bytes: 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

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