← Standard library

Frame

struct Frame
import Frame from Wax::Recording;

An absolute recording frame in the Wax::Recording namespace. Distinct from ordinary integers and application frame counters; use it when selecting recorded application state.

Recording.wax:9

Members

constructorconstructor

public constructor (int64 number)

Creates an absolute recording frame. Negative frame numbers panic.

Recording.wax:15

numbergetter

public get number() : int64

The nonnegative absolute frame number.

Recording.wax:23

Previousmethod

public fn Previous(int64 count = 1) : Frame

Moves backward by a nonnegative count. A negative count or movement before frame zero panics.

Recording.wax:31

Nextmethod

public fn Next(int64 count = 1) : Frame

Moves forward by a nonnegative count. A negative count or signed 64-bit overflow panics.

Recording.wax:40

OffsetBymethod

public fn OffsetBy(int64 offset) : Frame

Moves by a signed count. Movement before frame zero or beyond the maximum frame panics.

Recording.wax:49

DistanceFrommethod

public fn DistanceFrom(Frame earlier) : int64

Returns this frame number minus earlier; the result may be negative.

Recording.wax:58

GetHashCodemethod

public fn GetHashCode() : uint32

Hashes the absolute frame number.

Recording.wax:65

Equalsmethod

public fn Equals(Frame other) : bool

Tests exact frame-number equality.

Recording.wax:72

CompareTomethod

public fn CompareTo(Frame other) : int32

Returns -1, 0, or 1 for earlier, equal, or later frames.

Recording.wax:79

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.