Files
sbox-public/engine/Sandbox.System/Utility/ByteStream/IByteParsable.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

19 lines
548 B
C#

namespace Sandbox;
public interface IByteParsable
{
public readonly ref struct ByteParseOptions
{
}
static abstract object ReadObject( ref ByteStream stream, ByteParseOptions o = default );
static abstract void WriteObject( ref ByteStream stream, object value, ByteParseOptions o = default );
}
public interface IByteParsable<T> : IByteParsable
{
public static abstract T Read( ref ByteStream stream, ByteParseOptions o = default );
public static abstract void Write( ref ByteStream stream, T value, ByteParseOptions o = default );
}