public void ReadPortable(IPortableReader reader)
 {
     bb = reader.ReadByteArray("b");
     cc = reader.ReadCharArray("c");
     ss = reader.ReadShortArray("s");
     ii = reader.ReadIntArray("i");
     ll = reader.ReadLongArray("l");
     ff = reader.ReadFloatArray("f");
     dd = reader.ReadDoubleArray("d");
     nn = reader.ReadPortableArray <NamedPortable>("nn");
 }
Ejemplo n.º 2
0
        public void ReadPortable(IPortableReader reader)
        {
            bb = reader.ReadByteArray("b");
            cc = reader.ReadCharArray("c");
            ss = reader.ReadShortArray("s");
            ii = reader.ReadIntArray("i");
            ll = reader.ReadLongArray("l");
            ff = reader.ReadFloatArray("f");
            dd = reader.ReadDoubleArray("d");
            var pp = reader.ReadPortableArray("nn");

            nn = new NamedPortable[pp.Length];
            Array.Copy(pp, 0, nn, 0, nn.Length);
        }
Ejemplo n.º 3
0
 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.ReadUTF("string");
     StringArray = reader.ReadUTFArray("stringArray");
 }
 public virtual void TestReadLongArray()
 {
     Assert.IsNull(reader.ReadLongArray("NO SUCH FIELD"));
 }
 public void ReadPortable(IPortableReader reader)
 {
     bb = reader.ReadByteArray("b");
     cc = reader.ReadCharArray("c");
     ss = reader.ReadShortArray("s");
     ii = reader.ReadIntArray("i");
     ll = reader.ReadLongArray("l");
     ff = reader.ReadFloatArray("f");
     dd = reader.ReadDoubleArray("d");
     var pp = reader.ReadPortableArray("nn");
     nn = new NamedPortable[pp.Length];
     Array.Copy(pp, 0, nn, 0, nn.Length);
 }
 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.ReadUTF("string");
     StringArray = reader.ReadUTFArray("stringArray");
 }