IReader.cs 625 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System.Collections;
  2. namespace XGame.Framework.Serialization
  3. {
  4. public interface IReader
  5. {
  6. bool ReadBool();
  7. sbyte ReadSbyte();
  8. byte ReadByte();
  9. short ReadShort();
  10. ushort ReadUShort();
  11. int ReadInt();
  12. uint ReadUInt();
  13. long ReadLong();
  14. ulong ReadULong();
  15. float ReadFloat();
  16. double ReadDouble();
  17. char ReadChar();
  18. string ReadString();
  19. byte[] ReadBytes();
  20. T ReadSerializable<T>() where T : ISerializable, new();
  21. T ReadEnumerable<T>() where T : class, IEnumerable;
  22. }
  23. }