public virtual void TestReadUTF() { var aString = reader.ReadString("string"); Assert.AreEqual("test", aString); Assert.IsNull(reader.ReadString("NO SUCH FIELD")); }
/// <exception cref="System.IO.IOException" /> public virtual void ReadPortable(IPortableReader reader) { name = reader.ReadString("name"); address = reader.ReadPortable <PortableAddress>("address"); height = reader.ReadLong("height"); age = reader.ReadInt("age"); }
/** <inheritdoc /> */ public void ReadPortable(IPortableReader reader) { Prop = reader.ReadString("Prop"); ThrowOnRead = reader.ReadBoolean("ThrowOnRead"); if (ThrowOnRead) { throw new Exception("Expected exception in TestPortableClass.ReadPortable"); } }
/// <exception cref="System.IO.IOException"/> public virtual void ReadPortable(IPortableReader reader) { aByte = reader.ReadByte("byte"); aBoolean = reader.ReadBoolean("boolean"); character = reader.ReadChar("char"); aShort = reader.ReadShort("short"); integer = reader.ReadInt("int"); aLong = reader.ReadLong("long"); aFloat = reader.ReadFloat("float"); aDouble = reader.ReadDouble("double"); aString = reader.ReadString("string"); }
public void ReadPortable(IPortableReader reader) { b = reader.ReadByte("b"); bo = reader.ReadBoolean("bool"); c = reader.ReadChar("c"); s = reader.ReadShort("s"); i = reader.ReadInt("i"); l = reader.ReadLong("l"); f = reader.ReadFloat("f"); d = reader.ReadDouble("d"); str = reader.ReadString("str"); p = reader.ReadPortable <InnerPortable>("p"); }
public void ReadPortable(IPortableReader reader) { Bool = reader.ReadBoolean("bool"); BoolArray = reader.ReadBooleanArray("boolArray"); Byte = reader.ReadByte("byte"); ByteArray = reader.ReadByteArray("byteArray"); Char = reader.ReadChar("char"); CharArray = reader.ReadCharArray("charArray"); Short = reader.ReadShort("short"); ShortArray = reader.ReadShortArray("shortArray"); Int = reader.ReadInt("int"); IntArray = reader.ReadIntArray("intArray"); Long = reader.ReadLong("long"); LongArray = reader.ReadLongArray("longArray"); Float = reader.ReadFloat("float"); FloatArray = reader.ReadFloatArray("floatArray"); Double = reader.ReadDouble("double"); DoubleArray = reader.ReadDoubleArray("doubleArray"); String = reader.ReadString("string"); StringArray = reader.ReadStringArray("stringArray"); }
/** <ineritdoc /> */ public void ReadPortable(IPortableReader reader) { Name = reader.ReadString("name"); Address = reader.ReadString("address"); Age = reader.ReadInt("age"); }
/// <exception cref="System.IO.IOException" /> public virtual void ReadPortable(IPortableReader reader) { street = reader.ReadString("street"); no = reader.ReadInt("no"); }
/** <inheritdoc /> */ virtual public void ReadPortable(IPortableReader reader) { Before = reader.ReadString("before"); Outer = reader.ReadObject<HandleOuter>("outer"); After = reader.ReadString("after"); IPortableRawReader rawReader = reader.RawReader(); RawBefore = rawReader.ReadString(); RawOuter = rawReader.ReadObject<HandleOuter>(); RawAfter = rawReader.ReadString(); }
public unsafe void ReadPortable(object obj, IPortableReader reader) { PrimitiveFieldType obj0 = (PrimitiveFieldType)obj; obj0.PBool = reader.ReadBoolean("bool"); obj0.PByte = reader.ReadByte("byte"); obj0.PShort = reader.ReadShort("short"); obj0.PInt = reader.ReadInt("int"); obj0.PLong = reader.ReadLong("long"); obj0.PChar = reader.ReadChar("char"); obj0.PFloat = reader.ReadFloat("float"); obj0.PDouble = reader.ReadDouble("double"); byte sByte = reader.ReadByte("sbyte"); short uShort = reader.ReadShort("ushort"); int uInt = reader.ReadInt("uint"); long uLong = reader.ReadLong("ulong"); obj0.PSbyte = *(sbyte*)&sByte; obj0.PUshort = *(ushort*)&uShort; obj0.PUint = *(uint*)&uInt; obj0.PUlong = *(ulong*)&uLong; obj0.PString = reader.ReadString("string"); obj0.PGuid = reader.ReadGuid("guid").Value; obj0.PnGuid = reader.ReadGuid("nguid"); }
public unsafe void ReadPortable(IPortableReader reader) { PBool = reader.ReadBoolean("bool"); PByte = reader.ReadByte("byte"); PShort = reader.ReadShort("short"); PInt = reader.ReadInt("int"); PLong = reader.ReadLong("long"); PChar = reader.ReadChar("char"); PFloat = reader.ReadFloat("float"); PDouble = reader.ReadDouble("double"); byte sByte = reader.ReadByte("sbyte"); short uShort = reader.ReadShort("ushort"); int uInt = reader.ReadInt("uint"); long uLong = reader.ReadLong("ulong"); PSbyte = *(sbyte*)&sByte; PUshort = *(ushort*)&uShort; PUint = *(uint*)&uInt; PUlong = *(ulong*)&uLong; PString = reader.ReadString("string"); PGuid = reader.ReadGuid("guid").Value; PnGuid = reader.ReadGuid("nguid"); }
public virtual void ReadPortable(IPortableReader reader) { k = reader.ReadInt("myint"); name = reader.ReadString("name"); }
public void ReadPortable(IPortableReader reader) { Id = reader.ReadInt("id"); Name = reader.ReadString("name"); LastOrder = DateTime.FromFileTimeUtc(reader.ReadLong("lastOrder")); }
public void ReadPortable(IPortableReader reader) { _name = reader.ReadString("name"); }
public void ReadPortable(IPortableReader reader) { _username = reader.ReadString("username"); _age = reader.ReadInt("age"); _active = reader.ReadBoolean("active"); }