mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 04:13:40 +01:00
17 lines
440 B
C#
17 lines
440 B
C#
namespace Dalamud.Bindings.ImGui;
|
|
|
|
public unsafe partial struct ImGuiPayload
|
|
{
|
|
public readonly Span<byte> DataSpan => new(this.Data, this.DataSize);
|
|
|
|
public readonly bool IsDataType(Utf8Buffer type)
|
|
{
|
|
fixed (ImGuiPayload* ptr = &this)
|
|
return ImGui.IsDataType(ptr, type);
|
|
}
|
|
}
|
|
|
|
public partial struct ImGuiPayloadPtr
|
|
{
|
|
public readonly bool IsDataType(Utf8Buffer type) => ImGui.IsDataType(this, type);
|
|
}
|