Table of Contents

Struct TagSetFast

Namespace
Vintagestory.API.Datastructures
Assembly
VintagestoryAPI.dll
[JsonConverter(typeof(EntityTagSetConverter))]
public struct TagSetFast
Inherited Members
Extension Methods

Constructors

TagSetFast(Vector256<ulong>)

public TagSetFast(Vector256<ulong> storage)

Parameters

storage Vector256<ulong>

Fields

All

public static readonly TagSetFast All

Field Value

TagSetFast

Empty

public static readonly TagSetFast Empty

Field Value

TagSetFast

Properties

IsEmpty

public readonly bool IsEmpty { get; }

Property Value

bool

Methods

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override readonly bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

FromBytes(BinaryReader)

public static TagSetFast FromBytes(BinaryReader reader)

Parameters

reader BinaryReader

Returns

TagSetFast

GetHashCode()

Returns the hash code for this instance.

public override readonly int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

IsFullyContainedIn(in TagSetFast)

public readonly bool IsFullyContainedIn(in TagSetFast r)

Parameters

r TagSetFast

Returns

bool

True if all tags that are active in this instance are also active in the other instance, false otherwise.

Remarks

This is NOT symmetrical, meaning a.IsFullyContainedIn(b) != b.IsFullyContainedIn(a) !

Overlaps(in TagSetFast)

public readonly bool Overlaps(in TagSetFast r)

Parameters

r TagSetFast

Returns

bool

True if all any of the tags that are active in this instance are also active in the other instance, false otherwise.

Remarks

This is symmetrical, meaning a.Overlaps(b) == b.Overlaps(a) .

ToBytes(BinaryWriter)

public readonly void ToBytes(BinaryWriter writer)

Parameters

writer BinaryWriter

Operators

operator &(TagSetFast, TagSetFast)

public static TagSetFast operator &(TagSetFast l, TagSetFast r)

Parameters

l TagSetFast
r TagSetFast

Returns

TagSetFast

operator |(TagSetFast, TagSetFast)

public static TagSetFast operator |(TagSetFast l, TagSetFast r)

Parameters

l TagSetFast
r TagSetFast

Returns

TagSetFast

operator ==(TagSetFast, TagSetFast)

public static bool operator ==(TagSetFast l, TagSetFast r)

Parameters

l TagSetFast
r TagSetFast

Returns

bool

operator ^(TagSetFast, TagSetFast)

public static TagSetFast operator ^(TagSetFast l, TagSetFast r)

Parameters

l TagSetFast
r TagSetFast

Returns

TagSetFast

operator !=(TagSetFast, TagSetFast)

public static bool operator !=(TagSetFast l, TagSetFast r)

Parameters

l TagSetFast
r TagSetFast

Returns

bool

operator ~(TagSetFast)

public static TagSetFast operator ~(TagSetFast l)

Parameters

l TagSetFast

Returns

TagSetFast