mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-16 18:29:15 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
19 lines
548 B
C#
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 );
|
|
}
|