public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { BitsPerPixel = input.ReadInt32(); break; } case 18: { if (size_ == null) { size_ = new global::SC2APIProtocol.Size2DI(); } input.ReadMessage(size_); break; } case 26: { Data = input.ReadBytes(); break; } } } }
public void MergeFrom(ImageData other) { if (other == null) { return; } if (other.BitsPerPixel != 0) { BitsPerPixel = other.BitsPerPixel; } if (other.size_ != null) { if (size_ == null) { size_ = new global::SC2APIProtocol.Size2DI(); } Size.MergeFrom(other.Size); } if (other.Data.Length != 0) { Data = other.Data; } }