public void Read(__BinaryParser input) { this.objectId = input.ReadInt32(); this.name = input.ReadString(); this.numMembers = input.ReadInt32(); this.memberNames = new string[this.numMembers]; this.binaryTypeEnumA = new BinaryTypeEnum[this.numMembers]; this.typeInformationA = new object[this.numMembers]; this.memberAssemIds = new int[this.numMembers]; for (int index = 0; index < this.numMembers; ++index) { this.memberNames[index] = input.ReadString(); } for (int index = 0; index < this.numMembers; ++index) { this.binaryTypeEnumA[index] = (BinaryTypeEnum)input.ReadByte(); } for (int index = 0; index < this.numMembers; ++index) { if (this.binaryTypeEnumA[index] != BinaryTypeEnum.ObjectUrt && this.binaryTypeEnumA[index] != BinaryTypeEnum.ObjectUser) { this.typeInformationA[index] = BinaryConverter.ReadTypeInfo(this.binaryTypeEnumA[index], input, out this.memberAssemIds[index]); } else { BinaryConverter.ReadTypeInfo(this.binaryTypeEnumA[index], input, out this.memberAssemIds[index]); } } if (this.binaryHeaderEnum != BinaryHeaderEnum.ObjectWithMapTypedAssemId) { return; } this.assemId = input.ReadInt32(); }
public void Read(__BinaryParser input) { this.objectId = input.ReadInt32(); this.name = input.ReadString(); this.numMembers = input.ReadInt32(); this.memberNames = new string[this.numMembers]; this.binaryTypeEnumA = new BinaryTypeEnum[this.numMembers]; this.typeInformationA = new object[this.numMembers]; this.memberAssemIds = new int[this.numMembers]; for (int i = 0; i < this.numMembers; i++) { this.memberNames[i] = input.ReadString(); } for (int j = 0; j < this.numMembers; j++) { this.binaryTypeEnumA[j] = (BinaryTypeEnum)input.ReadByte(); } for (int k = 0; k < this.numMembers; k++) { if (this.binaryTypeEnumA[k] != BinaryTypeEnum.ObjectUrt && this.binaryTypeEnumA[k] != BinaryTypeEnum.ObjectUser) { this.typeInformationA[k] = BinaryConverter.ReadTypeInfo(this.binaryTypeEnumA[k], input, out this.memberAssemIds[k]); } else { BinaryConverter.ReadTypeInfo(this.binaryTypeEnumA[k], input, out this.memberAssemIds[k]); } } if (this.binaryHeaderEnum == BinaryHeaderEnum.ObjectWithMapTypedAssemId) { this.assemId = input.ReadInt32(); } }
internal static object ReadTypeInfo(BinaryTypeEnum binaryTypeEnum, __BinaryParser input, out int assemId) { object obj = (object)null; int num = 0; switch (binaryTypeEnum) { case BinaryTypeEnum.Primitive: case BinaryTypeEnum.PrimitiveArray: obj = (object)(InternalPrimitiveTypeE)input.ReadByte(); goto case BinaryTypeEnum.String; case BinaryTypeEnum.String: case BinaryTypeEnum.Object: case BinaryTypeEnum.ObjectArray: case BinaryTypeEnum.StringArray: assemId = num; return(obj); case BinaryTypeEnum.ObjectUrt: obj = (object)input.ReadString(); goto case BinaryTypeEnum.String; case BinaryTypeEnum.ObjectUser: obj = (object)input.ReadString(); num = input.ReadInt32(); goto case BinaryTypeEnum.String; default: throw new SerializationException(Environment.GetResourceString("Serialization_TypeRead", (object)binaryTypeEnum.ToString())); } }
public void Read(__BinaryParser input) { this.objectId = input.ReadInt32(); this.name = input.ReadString(); this.numMembers = input.ReadInt32(); this.memberNames = new string[this.numMembers]; this.binaryTypeEnumA = new BinaryTypeEnum[this.numMembers]; this.typeInformationA = new object[this.numMembers]; this.memberAssemIds = new int[this.numMembers]; for (int i = 0; i < this.numMembers; i++) { this.memberNames[i] = input.ReadString(); } for (int j = 0; j < this.numMembers; j++) { this.binaryTypeEnumA[j] = (BinaryTypeEnum) input.ReadByte(); } for (int k = 0; k < this.numMembers; k++) { if ((this.binaryTypeEnumA[k] != BinaryTypeEnum.ObjectUrt) && (this.binaryTypeEnumA[k] != BinaryTypeEnum.ObjectUser)) { this.typeInformationA[k] = BinaryConverter.ReadTypeInfo(this.binaryTypeEnumA[k], input, out this.memberAssemIds[k]); } else { BinaryConverter.ReadTypeInfo(this.binaryTypeEnumA[k], input, out this.memberAssemIds[k]); } } if (this.binaryHeaderEnum == BinaryHeaderEnum.ObjectWithMapTypedAssemId) { this.assemId = input.ReadInt32(); } }
public void Read(__BinaryParser input) { this.objectId = input.ReadInt32(); this.name = input.ReadString(); this.numMembers = input.ReadInt32(); this.memberNames = new string[this.numMembers]; for (int i = 0; i < this.numMembers; i++) { this.memberNames[i] = input.ReadString(); } if (this.binaryHeaderEnum == BinaryHeaderEnum.ObjectWithMapAssemId) { this.assemId = input.ReadInt32(); } }
public void Read(__BinaryParser input) { this.objectId = input.ReadInt32(); this.name = input.ReadString(); this.numMembers = input.ReadInt32(); this.memberNames = new string[this.numMembers]; for (int index = 0; index < this.numMembers; ++index) { this.memberNames[index] = input.ReadString(); } if (this.binaryHeaderEnum != BinaryHeaderEnum.ObjectWithMapAssemId) { return; } this.assemId = input.ReadInt32(); }
internal static object ReadWithCode(__BinaryParser input) { InternalPrimitiveTypeE code = (InternalPrimitiveTypeE) input.ReadByte(); switch (code) { case InternalPrimitiveTypeE.Null: return null; case InternalPrimitiveTypeE.String: return input.ReadString(); } return input.ReadValue(code); }
// Token: 0x0600529D RID: 21149 RVA: 0x001222E4 File Offset: 0x001204E4 internal static object ReadWithCode(__BinaryParser input) { InternalPrimitiveTypeE internalPrimitiveTypeE = (InternalPrimitiveTypeE)input.ReadByte(); if (internalPrimitiveTypeE == InternalPrimitiveTypeE.Null) { return(null); } if (internalPrimitiveTypeE == InternalPrimitiveTypeE.String) { return(input.ReadString()); } return(input.ReadValue(internalPrimitiveTypeE)); }
internal static object ReadWithCode(__BinaryParser input) { InternalPrimitiveTypeE code = (InternalPrimitiveTypeE)input.ReadByte(); switch (code) { case InternalPrimitiveTypeE.Null: return(null); case InternalPrimitiveTypeE.String: return(input.ReadString()); } return(input.ReadValue(code)); }
// Token: 0x06005298 RID: 21144 RVA: 0x001220F8 File Offset: 0x001202F8 internal static object ReadTypeInfo(BinaryTypeEnum binaryTypeEnum, __BinaryParser input, out int assemId) { object result = null; int num = 0; switch (binaryTypeEnum) { case BinaryTypeEnum.Primitive: case BinaryTypeEnum.PrimitiveArray: result = (InternalPrimitiveTypeE)input.ReadByte(); break; case BinaryTypeEnum.String: case BinaryTypeEnum.Object: case BinaryTypeEnum.ObjectArray: case BinaryTypeEnum.StringArray: break; case BinaryTypeEnum.ObjectUrt: result = input.ReadString(); break; case BinaryTypeEnum.ObjectUser: result = input.ReadString(); num = input.ReadInt32(); break; default: throw new SerializationException(Environment.GetResourceString("Serialization_TypeRead", new object[] { binaryTypeEnum.ToString() })); } assemId = num; return(result); }
internal static object ReadTypeInfo(BinaryTypeEnum binaryTypeEnum, __BinaryParser input, out int assemId) { object obj2 = null; int num = 0; switch (binaryTypeEnum) { case BinaryTypeEnum.Primitive: case BinaryTypeEnum.PrimitiveArray: obj2 = (InternalPrimitiveTypeE) input.ReadByte(); break; case BinaryTypeEnum.String: case BinaryTypeEnum.Object: case BinaryTypeEnum.ObjectArray: case BinaryTypeEnum.StringArray: break; case BinaryTypeEnum.ObjectUrt: obj2 = input.ReadString(); break; case BinaryTypeEnum.ObjectUser: obj2 = input.ReadString(); num = input.ReadInt32(); break; default: throw new SerializationException(Environment.GetResourceString("Serialization_TypeRead", new object[] { binaryTypeEnum.ToString() })); } assemId = num; return obj2; }
public void Read(__BinaryParser input) { this.assemId = input.ReadInt32(); this.assemblyString = input.ReadString(); }
[System.Security.SecurityCritical] // implements Critical method public void Read(__BinaryParser input) { // binaryHeaderEnum has already been read objectId = input.ReadInt32(); name = input.ReadString(); numMembers = input.ReadInt32(); memberNames = new String[numMembers]; binaryTypeEnumA = new BinaryTypeEnum[numMembers]; typeInformationA = new Object[numMembers]; memberAssemIds = new Int32[numMembers]; for (int i=0; i<numMembers; i++) memberNames[i] = input.ReadString(); for (int i=0; i<numMembers; i++) binaryTypeEnumA[i] = (BinaryTypeEnum)input.ReadByte(); for (int i=0; i<numMembers; i++) if (binaryTypeEnumA[i] != BinaryTypeEnum.ObjectUrt && binaryTypeEnumA[i] != BinaryTypeEnum.ObjectUser) typeInformationA[i] = BinaryConverter.ReadTypeInfo(binaryTypeEnumA[i], input, out memberAssemIds[i]); else BinaryConverter.ReadTypeInfo(binaryTypeEnumA[i], input, out memberAssemIds[i]); if (binaryHeaderEnum == BinaryHeaderEnum.ObjectWithMapTypedAssemId) { assemId = input.ReadInt32(); } }
[System.Security.SecurityCritical] // implements Critical method public void Read(__BinaryParser input) { objectId = input.ReadInt32(); name = input.ReadString(); numMembers = input.ReadInt32(); memberNames = new String[numMembers]; for (int i=0; i<numMembers; i++) { memberNames[i] = input.ReadString(); SerTrace.Log(this, "BinaryObjectWithMap Read ",i," ",memberNames[i]); } if (binaryHeaderEnum == BinaryHeaderEnum.ObjectWithMapAssemId) { assemId = input.ReadInt32(); } }
[System.Security.SecurityCritical] // implements Critical method public void Read(__BinaryParser input) { objectId = input.ReadInt32(); value = input.ReadString(); }
internal static Object ReadWithCode(__BinaryParser input) { InternalPrimitiveTypeE code = (InternalPrimitiveTypeE)input.ReadByte(); if (code == InternalPrimitiveTypeE.Null) return null; else if (code == InternalPrimitiveTypeE.String) return input.ReadString(); else return input.ReadValue(code); }
public void Read(__BinaryParser input) { this.objectId = input.ReadInt32(); this.value = input.ReadString(); }
// Reads the type information from the wire internal static Object ReadTypeInfo(BinaryTypeEnum binaryTypeEnum, __BinaryParser input, out int assemId) { SerTrace.Log( "BinaryConverter", "ReadTypeInfo Entry ",((Enum)binaryTypeEnum).ToString()); Object var = null; int readAssemId = 0; switch (binaryTypeEnum) { case BinaryTypeEnum.Primitive: case BinaryTypeEnum.PrimitiveArray: var = (InternalPrimitiveTypeE)input.ReadByte(); break; case BinaryTypeEnum.String: case BinaryTypeEnum.Object: case BinaryTypeEnum.StringArray: case BinaryTypeEnum.ObjectArray: break; case BinaryTypeEnum.ObjectUrt: var = input.ReadString(); break; case BinaryTypeEnum.ObjectUser: var = input.ReadString(); readAssemId = input.ReadInt32(); break; default: throw new SerializationException(Environment.GetResourceString("Serialization_TypeRead",((Enum)binaryTypeEnum).ToString())); } SerTrace.Log( "BinaryConverter", "ReadTypeInfo Exit ",var," assemId ",readAssemId); assemId = readAssemId; return var; }