Struct V128
A 128 bit value
Namespace: Wasmtime
Assembly: Wasmtime.Dotnet.dll
Syntax
public struct V128
Constructors
| Improve this Doc View SourceV128(ReadOnlySpan<Byte>)
Construct a new V128 from a 16 element byte span
Declaration
public V128(ReadOnlySpan<byte> bytes)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<System.Byte> | bytes | The bytes to construct the V128 with. |
V128(Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)
Construct a new V128 from 16 bytes
Declaration
public V128(byte b0, byte b1, byte b2, byte b3, byte b4, byte b5, byte b6, byte b7, byte b8, byte b9, byte b10, byte b11, byte b12, byte b13, byte b14, byte b15)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | b0 | First byte. |
System.Byte | b1 | Second byte. |
System.Byte | b2 | Third byte. |
System.Byte | b3 | Fourth byte. |
System.Byte | b4 | Fifth byte. |
System.Byte | b5 | Sixth byte. |
System.Byte | b6 | Seventh byte. |
System.Byte | b7 | Eighth byte. |
System.Byte | b8 | Ninth byte. |
System.Byte | b9 | Tenth byte. |
System.Byte | b10 | Eleventh byte. |
System.Byte | b11 | Twelfth byte. |
System.Byte | b12 | Thirteenth byte. |
System.Byte | b13 | Fourteenth byte. |
System.Byte | b14 | Fifteenth byte. |
System.Byte | b15 | Sixteenth byte. |
Fields
| Improve this Doc View SourceAllBitsSet
Get a V128 with all bits set to 1
Declaration
public static readonly V128 AllBitsSet
Field Value
Type | Description |
---|---|
V128 |
Methods
| Improve this Doc View SourceAsSpan()
Creates a new writeable span over the bytes of this V128
Declaration
public Span<byte> AsSpan()
Returns
Type | Description |
---|---|
Span<System.Byte> | The span representation of this V128. |
CopyTo(Span<Byte>)
Copy bytes into a span
Declaration
public void CopyTo(Span<byte> dest)
Parameters
Type | Name | Description |
---|---|---|
Span<System.Byte> | dest | span to copy bytes into |