A class and a constructor function to create (raw) bytes trait(let)s.

Bytes(...)

Arguments

...

Arguments that are passed to the initialize method of 'BytesClass'

Super class

RKernel::Trait -> Bytes

Public fields

value

A raw bytes vector

optional

Logical, whether an initializing logical value must be provided

coerce

Logical, whether 'as.raw()' is implicitely used when a value is assigned to the trait

Methods

Inherited methods


Method validator()

A validator method

Usage

BytesClass$validator(value)

Arguments

value

A value to be checked for validity


Method new()

The initializing method

Usage

BytesClass$new(initial = raw(0), coerce = TRUE, optional = TRUE)

Arguments

initial

A value with which the traitlet is initialized

coerce

Logical, used to initialize the 'coerce' field

optional

Logical, used to initialize the 'optional' field


Method clone()

The objects of this class are cloneable with this method.

Usage

BytesClass$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.