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