-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make flow struct stuff internal as it isn't needed publicly
- Loading branch information
1 parent
75cd6a5
commit 790eddf
Showing
5 changed files
with
68 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.InteropServices; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace p5rpc.lib.Components | ||
{ | ||
internal unsafe class FlowStruct | ||
{ | ||
[StructLayout(LayoutKind.Sequential)] | ||
internal struct FlowFunctionGroup | ||
{ | ||
internal FlowFunctionInfo* Functions { get; } | ||
internal long NumFunctions { get; } | ||
} | ||
|
||
[StructLayout(LayoutKind.Sequential)] | ||
internal struct FlowFunctionInfo | ||
{ | ||
internal nuint Function { get; } | ||
internal long NumArguments { get; } | ||
internal char* Name { get; } | ||
} | ||
|
||
[StructLayout(LayoutKind.Explicit)] | ||
internal struct FlowContext | ||
{ | ||
[FieldOffset(0x2c)] | ||
internal short NumArgs; | ||
[FieldOffset(0x2e)] | ||
internal fixed byte ArgTypes[32]; | ||
[FieldOffset(0x58)] | ||
internal fixed long Arguments[32]; | ||
[FieldOffset(0x1D8)] | ||
internal int IntReturnValue; | ||
[FieldOffset(0x1D8)] | ||
internal float FloatReturnValue; | ||
[FieldOffset(0x224)] | ||
internal int WaitingFlag; | ||
} | ||
} | ||
} |