public object ReadBody(VoxBinaryReader reader)
 {
     return(*(float *)reader.TakeBytes(4));
 }
 public object ReadBody(VoxBinaryReader reader)
 {
     return(readThingImpl(reader));
 }
Exemplo n.º 3
0
 public object ReadFrame(Stream stream, Type hintType)
 {
     using (var reader = new VoxBinaryReader(stream)) {
         return(thisIsTotesTheRealLegitThingReaderWriterThing.ReadThing(reader, hintType));
     }
 }
 public object ReadBody(VoxBinaryReader reader)
 {
     return(false);
 }
Exemplo n.º 5
0
 public object ReadBody(VoxBinaryReader reader)
 {
     return(new object());
 }
Exemplo n.º 6
0
 public object ReadBody(VoxBinaryReader reader)
 {
     throw new InvalidStateException("Attempted to read void thing");
 }
Exemplo n.º 7
0
 public object ReadBody(VoxBinaryReader reader)
 {
     return(null);
 }
Exemplo n.º 8
0
 public object ReadBody(VoxBinaryReader reader)
 {
     return(*(double *)reader.TakeBytes(8));
 }
Exemplo n.º 9
0
 public object ReadBody(VoxBinaryReader reader)
 {
     return(new TimeSpan(*(long *)reader.TakeBytes(8)));
 }
 public ReaderThing(ThisIsTotesTheRealLegitThingReaderWriterThing thisIsTotesTheRealLegitThingReaderWriterThing, VoxBinaryReader reader, int slotCount)
 {
     this.thisIsTotesTheRealLegitThingReaderWriterThing = thisIsTotesTheRealLegitThingReaderWriterThing;
     this.reader    = reader;
     this.slotCount = slotCount;
 }
Exemplo n.º 11
0
 public object ReadBody(VoxBinaryReader reader)
 {
     return((TEnum)Convert.ChangeType(backingTypeThingReaderWriter.ReadBody(reader), typeof(TBackingType)));
 }