namespace sys.core.lang
class Bool
this{string: String};
Parses a string an constructs an Bool based on it.
string=> string to parse
def Clamp(min: Bool, max: Bool);
Clamps the current mutable instance between `min` and `max`.
min=> the minimum value
max=> the maximum value
func Clamped(min: Bool, max: Bool): Int;
Returns the current instance clamped between `min` and `max`.
min=> the minimum value
max=> the maximum value
the clamped value
func ToString(): String;
Converts the value to a Utf8 string.
the resulting string
func @write(ref stream: Stream);
func @write(ref stream: Stream, format: OutputFormat);
Writes the value to an Utf8 text stream. Can use an optional output format specifier.
stream=> the output stream
format=> formatting information
func @put(ref stream: Stream);
Writes the value to a binary stream as a 8 bit signed integer, 0 or 1.
stream=> the output stream
def @get(ref stream: Stream);
Reads a 8 bit signed integer and casts it to a Bool.
stream=> the input stream
const Min;
The minimum value for an Bool instance.
const Max;
The maximum value for an Bool instance.
const IsSigned;
true if the numeric representation uses two's complement signed values, false otherwise.
const IsInteger;
true if the numeric representation is an integer, false if it is a floating point.