Struct Preamble
Represents the preamble of a WebAssembly module.
Assembly: WaaS.Core.dll
View Source
Declaration
public readonly struct Preamble : IEquatable<Preamble>
Implements:
System.IEquatable<WaaS.Models.Preamble>
Fields
DefinedMagic
View Source
Declaration
public const uint DefinedMagic = 1836278016
DefinedVersion
View Source
Declaration
public const uint DefinedVersion = 1
magic
View Source
Declaration
public readonly uint magic
version
View Source
Declaration
public readonly uint version
Methods
IsValid()
View Source
Declaration
public bool IsValid()
Returns
System.Boolean
Equals(Preamble)
Indicates whether the current object is equal to another object of the same type.
View Source
Declaration
public bool Equals(Preamble other)
Returns
System.Boolean
: true if the current object is equal to the <code class="paramref">other</code> parameter; otherwise, false.
Parameters
Type | Name | Description |
---|---|---|
WaaS.Models.Preamble | other | An object to compare with this object. |
Equals(object)
Indicates whether this instance and a specified object are equal.
View Source
Declaration
public override bool Equals(object obj)
Returns
System.Boolean
: true if <code class="paramref">obj</code> and this instance are the same type and represent the same value; otherwise, false.
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current instance. |
GetHashCode()
Returns the hash code for this instance.
View Source
Declaration
public override int GetHashCode()
Returns
System.Int32
: A 32-bit signed integer that is the hash code for this instance.
Implements
System.IEquatable<WaaS.Models.Preamble>