Skip to content

BufferSizeValidator

[Source]

Validates that a buffer-until value is at least 1.

A buffer-until of 0 is meaningless — use Streaming to indicate "deliver all available data." Used by MakeBufferSize to construct BufferSize values.

primitive val BufferSizeValidator is
  Validator[USize val] val

Implements


Constructors

create

[Source]

new val create()
: BufferSizeValidator val^

Returns


Public Functions

apply

[Source]

fun box apply(
  value: USize val)
: (ValidationSuccess val | ValidationFailure val)

Parameters

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns