mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +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(ImU8String type)
|
|
{
|
|
fixed (ImGuiPayload* ptr = &this)
|
|
return ImGui.IsDataType(ptr, type);
|
|
}
|
|
}
|
|
|
|
public partial struct ImGuiPayloadPtr
|
|
{
|
|
public readonly bool IsDataType(ImU8String type) => ImGui.IsDataType(this, type);
|
|
}
|