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