← Standard library

FloatResult

struct FloatResult
import FloatResult from Wax;

A low-level floating-point parse result. Check outcome before reading bits; on success, position is the consumed UTF-8 byte count, which may be less than the input length.

FloatParse.wax:214

Members

bitsfield

public uint32 bits

The IEEE result bits when outcome is kOutcomeOk.

FloatParse.wax:218

outcomefield

public int32 outcome

Zero for success, one for invalid input, or two for out-of-range conversion; use FloatParse outcome constants.

FloatParse.wax:223

positionfield

public int32 position

The consumed byte position on success, or the reported failure position. Relative to the input span start.

FloatParse.wax:228

constructorconstructor

public constructor ()

Creates a zero-initialized result record; this alone does not perform parsing.

FloatParse.wax:232

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.