Skip to content

RawBytes

[Source]

Wraps Array[U8] val for unknown binary-format OIDs where no codec is registered. Semantically distinct from Bytea: Bytea means "this is known binary data from a bytea column," RawBytes means "we don't know what this OID is and here are the raw bytes."

class val RawBytes is
  FieldData val,
  Equatable[RawBytes val] ref

Implements


Constructors

create

[Source]

new val create(
  data': Array[U8 val] val)
: RawBytes val^

Parameters

Returns


Public fields

let data: Array[U8 val] val

[Source]


Public Functions

eq

[Source]

fun box eq(
  that: RawBytes val)
: Bool val

Parameters

Returns


string

[Source]

Returns a hex representation of the bytes (e.g., \\xdeadbeef).

fun box string()
: String iso^

Returns


ne

[Source]

fun box ne(
  that: RawBytes val)
: Bool val

Parameters

Returns