Class RawPayload
An SeString Payload representing unhandled raw payload data. Mainly useful for constructing unhandled hardcoded payloads, or forwarding any unknown payloads without modification.
Inherited Members
Namespace: Dalamud.Game.Text.SeStringHandling.Payloads
Assembly: Dalamud.dll
Syntax
public class RawPayload : Payload
Constructors
| Improve this Doc View SourceRawPayload(Byte[])
Initializes a new instance of the RawPayload class.
Declaration
public RawPayload(byte[] data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | data | The payload data. |
Properties
| Improve this Doc View SourceData
Gets the entire payload byte sequence for this payload. The returned data is a clone and modifications will not be persisted.
Declaration
[JsonIgnore]
public byte[] Data { get; }
Property Value
| Type | Description |
|---|---|
| System.Byte[] |
LinkTerminator
Gets a fixed Payload representing a common link-termination sequence, found in many payload chains.
Declaration
public static RawPayload LinkTerminator { get; }
Property Value
| Type | Description |
|---|---|
| RawPayload |
Type
Gets the type of this payload.
Declaration
public override PayloadType Type { get; }
Property Value
| Type | Description |
|---|---|
| PayloadType |
Overrides
Methods
| Improve this Doc View SourceDecodeImpl(BinaryReader, Int64)
Decodes a byte stream from the game into a payload object.
Declaration
protected override void DecodeImpl(BinaryReader reader, long endOfStream)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.BinaryReader | reader | A BinaryReader containing at least all the data for this payload. |
| System.Int64 | endOfStream | The location holding the end of the data for this payload. |
Overrides
| Improve this Doc View SourceEncodeImpl()
Encodes the internal state of this payload into a byte[] suitable for sending to in-game handlers such as the chat log.
Declaration
protected override byte[] EncodeImpl()
Returns
| Type | Description |
|---|---|
| System.Byte[] | Encoded binary payload data suitable for use with in-game handlers. |
Overrides
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |