mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.3 KiB
67 lines
1.3 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Net;
|
|
|
|
namespace ZeroLevel.Services.Serialization
|
|
{
|
|
public interface IBinaryReader : IDisposable
|
|
{
|
|
bool ReadBoolean();
|
|
|
|
byte ReadByte();
|
|
|
|
byte[] ReadBytes();
|
|
|
|
Double ReadDouble();
|
|
|
|
Int32 ReadInt32();
|
|
|
|
Int64 ReadLong();
|
|
|
|
string ReadString();
|
|
|
|
Guid ReadGuid();
|
|
|
|
DateTime? ReadDateTime();
|
|
|
|
decimal ReadDecimal();
|
|
|
|
TimeSpan ReadTimeSpan();
|
|
|
|
IPAddress ReadIP();
|
|
|
|
IPEndPoint ReadIPEndpoint();
|
|
|
|
#region Extensions
|
|
|
|
T Read<T>() where T : IBinarySerializable;
|
|
|
|
T ReadCompatible<T>();
|
|
|
|
List<T> ReadCollection<T>() where T : IBinarySerializable, new();
|
|
|
|
List<string> ReadStringCollection();
|
|
|
|
List<Guid> ReadGuidCollection();
|
|
|
|
List<DateTime> ReadDateTimeCollection();
|
|
|
|
List<Int64> ReadInt64Collection();
|
|
|
|
List<Int32> ReadInt32Collection();
|
|
|
|
List<Double> ReadDoubleCollection();
|
|
|
|
List<bool> ReadBooleanCollection();
|
|
|
|
List<byte> ReadByteCollection();
|
|
|
|
List<byte[]> ReadByteArrayCollection();
|
|
|
|
List<IPAddress> ReadIPCollection();
|
|
|
|
List<IPEndPoint> ReadIPEndPointCollection();
|
|
|
|
#endregion Extensions
|
|
}
|
|
} |