Skip to content

ReadBufferSizeValidator

[Source]

Validates that a read buffer size is at least 1.

A buffer of 0 bytes cannot hold any data and would stall the read loop. Used by MakeReadBufferSize to construct ReadBufferSize values.

primitive val ReadBufferSizeValidator is
  Validator[USize val] val

Implements


Constructors

create

[Source]

new val create()
: ReadBufferSizeValidator val^

Returns


Public Functions

apply

[Source]

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

Parameters

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns