Manpage logo

SPVM::Byte - A byte Value as An Object

Name  Description  Usage  Details  Interfaces  Fields  value  Class Methods  new  Instance Methods  to_string  Copyright & License 

Name

SPVM::Byte − A byte Value as An Object

Description

Byte class in SPVM represents a byte value as an object.

Usage

my $byte_object = Byte−>new(5);
my $byte_value = $byte_object−>value;

Details

This class is immutable.

This class is automatically loaded.

Interfaces

Stringable

Fields

value

"has value : ro byte;"

The value.

Class Methods

new

"static method new : Byte ($value : int);"

Creates a new Byte object with a "byte" $value.

Instance Methods

to_string

"method to_string : string ();"

Casts the value to string type and returns it.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License


Updated 2026-06-01 - jenkler.se | uex.se