public void MergeFrom(BinderFile other) { if (other == null) { return; } if (other.flags_ != null) { if (flags_ == null) { Flags = new global::SOULS.Binder.FileFlags(); } Flags.MergeFrom(other.Flags); } if (other.ID != 0) { ID = other.ID; } if (other.Name.Length != 0) { Name = other.Name; } bytes_.Add(other.bytes_); if (other.compressionType_ != null) { if (compressionType_ == null) { CompressionType = new global::SOULS.DCX.Type(); } CompressionType.MergeFrom(other.CompressionType); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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); }
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 (flags_ == null) { Flags = new global::SOULS.Binder.FileFlags(); } input.ReadMessage(Flags); break; } case 16: { ID = input.ReadInt32(); break; } case 26: { Name = input.ReadString(); break; } case 34: case 32: { bytes_.AddEntriesFrom(input, _repeated_bytes_codec); break; } case 42: { if (compressionType_ == null) { CompressionType = new global::SOULS.DCX.Type(); } input.ReadMessage(CompressionType); break; } } } }
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; } } } }