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.
Zero/ZeroLevel/Services/Serialization/IBinaryReader.cs

67 lines
1.3 KiB

6 years ago
using System;
using System.Collections.Generic;
using System.Net;
namespace ZeroLevel.Services.Serialization
{
public interface IBinaryReader : IDisposable
{
bool ReadBoolean();
6 years ago
byte ReadByte();
6 years ago
byte[] ReadBytes();
6 years ago
Double ReadDouble();
6 years ago
Int32 ReadInt32();
6 years ago
Int64 ReadLong();
6 years ago
string ReadString();
6 years ago
Guid ReadGuid();
6 years ago
DateTime? ReadDateTime();
6 years ago
decimal ReadDecimal();
6 years ago
TimeSpan ReadTimeSpan();
6 years ago
IPAddress ReadIP();
6 years ago
IPEndPoint ReadIPEndpoint();
#region Extensions
6 years ago
T Read<T>() where T : IBinarySerializable;
T ReadCompatible<T>();
6 years ago
List<T> ReadCollection<T>() where T : IBinarySerializable, new();
6 years ago
List<string> ReadStringCollection();
6 years ago
List<Guid> ReadGuidCollection();
6 years ago
List<DateTime> ReadDateTimeCollection();
6 years ago
List<Int64> ReadInt64Collection();
6 years ago
List<Int32> ReadInt32Collection();
6 years ago
List<Double> ReadDoubleCollection();
6 years ago
List<bool> ReadBooleanCollection();
6 years ago
List<byte> ReadByteCollection();
6 years ago
List<byte[]> ReadByteArrayCollection();
List<IPAddress> ReadIPCollection();
6 years ago
List<IPEndPoint> ReadIPEndPointCollection();
#endregion Extensions
6 years ago
}
}

Powered by TurnKey Linux.