Ejemplo n.º 1
0
 public void MergeFrom(BND4 other)
 {
     if (other == null)
     {
         return;
     }
     if (other.compression_ != null)
     {
         if (compression_ == null)
         {
             Compression = new global::SOULS.DCX.Type();
         }
         Compression.MergeFrom(other.Compression);
     }
     files_.Add(other.files_);
     if (other.Version.Length != 0)
     {
         Version = other.Version;
     }
     if (other.format_ != null)
     {
         if (format_ == null)
         {
             Format = new global::SOULS.Binder.Format();
         }
         Format.MergeFrom(other.Format);
     }
     if (other.Unk04 != false)
     {
         Unk04 = other.Unk04;
     }
     if (other.Unk05 != false)
     {
         Unk05 = other.Unk05;
     }
     if (other.BigEndian != false)
     {
         BigEndian = other.BigEndian;
     }
     if (other.BitBigEndian != false)
     {
         BitBigEndian = other.BitBigEndian;
     }
     if (other.Unicode != false)
     {
         Unicode = other.Unicode;
     }
     if (other.Extended != 0)
     {
         Extended = other.Extended;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (compression_ == null)
                    {
                        Compression = new global::SOULS.DCX.Type();
                    }
                    input.ReadMessage(Compression);
                    break;
                }

                case 18: {
                    files_.AddEntriesFrom(input, _repeated_files_codec);
                    break;
                }

                case 26: {
                    Version = input.ReadString();
                    break;
                }

                case 34: {
                    if (format_ == null)
                    {
                        Format = new global::SOULS.Binder.Format();
                    }
                    input.ReadMessage(Format);
                    break;
                }

                case 40: {
                    Unk04 = input.ReadBool();
                    break;
                }

                case 48: {
                    Unk05 = input.ReadBool();
                    break;
                }

                case 56: {
                    BigEndian = input.ReadBool();
                    break;
                }

                case 64: {
                    BitBigEndian = input.ReadBool();
                    break;
                }

                case 72: {
                    Unicode = input.ReadBool();
                    break;
                }

                case 80: {
                    Extended = input.ReadInt32();
                    break;
                }
                }
            }
        }