2023-01-04 17:15:45 -05:00
|
|
|
|
namespace Ryujinx.Horizon.Sdk.Sf.Cmif
|
|
|
|
|
{
|
|
|
|
|
struct ServerMessageRuntimeMetadata
|
|
|
|
|
{
|
2023-01-08 07:13:39 -05:00
|
|
|
|
public ushort InDataSize { get; }
|
|
|
|
|
public ushort OutDataSize { get; }
|
|
|
|
|
public byte InHeadersSize { get; }
|
|
|
|
|
public byte OutHeadersSize { get; }
|
|
|
|
|
public byte InObjectsCount { get; }
|
|
|
|
|
public byte OutObjectsCount { get; }
|
|
|
|
|
|
2023-01-04 17:15:45 -05:00
|
|
|
|
public int UnfixedOutPointerSizeOffset => InDataSize + InHeadersSize + 0x10;
|
|
|
|
|
|
|
|
|
|
public ServerMessageRuntimeMetadata(
|
|
|
|
|
ushort inDataSize,
|
|
|
|
|
ushort outDataSize,
|
2023-01-08 07:13:39 -05:00
|
|
|
|
byte inHeadersSize,
|
|
|
|
|
byte outHeadersSize,
|
|
|
|
|
byte inObjectsCount,
|
|
|
|
|
byte outObjectsCount)
|
2023-01-04 17:15:45 -05:00
|
|
|
|
{
|
2023-01-08 07:13:39 -05:00
|
|
|
|
InDataSize = inDataSize;
|
|
|
|
|
OutDataSize = outDataSize;
|
|
|
|
|
InHeadersSize = inHeadersSize;
|
|
|
|
|
OutHeadersSize = outHeadersSize;
|
|
|
|
|
InObjectsCount = inObjectsCount;
|
2023-01-04 17:15:45 -05:00
|
|
|
|
OutObjectsCount = outObjectsCount;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-01-08 07:13:39 -05:00
|
|
|
|
}
|