Table of Contents

Class RuntimeEventBatch

Namespace
Maplibre.NativeFfi.Runtime
Assembly
Maplibre.NativeFfi.dll

One drained batch of copied runtime events.

public sealed record RuntimeEventBatch : IEquatable<RuntimeEventBatch>
Inheritance
RuntimeEventBatch
Implements
Inherited Members

Remarks

Every value in the batch is a copy, so it stays readable after the next drain and after the map that produced it is closed.

Constructors

RuntimeEventBatch(IReadOnlyList<RuntimeEvent>, ulong)

One drained batch of copied runtime events.

public RuntimeEventBatch(IReadOnlyList<RuntimeEvent> Events, ulong RemainingCount)

Parameters

Events IReadOnlyList<RuntimeEvent>

The copied events in queue order.

RemainingCount ulong

Events still queued for the runtime after this batch. A nonzero value means another drain reports more events.

Remarks

Every value in the batch is a copy, so it stays readable after the next drain and after the map that produced it is closed.

Properties

Events

public IReadOnlyList<RuntimeEvent> Events { get; init; }

Property Value

IReadOnlyList<RuntimeEvent>

RemainingCount

Events still queued for the runtime after this batch. A nonzero value means another drain reports more events.

public ulong RemainingCount { get; init; }

Property Value

ulong

Methods

Equals(RuntimeEventBatch?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(RuntimeEventBatch? other)

Parameters

other RuntimeEventBatch

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.