(dAtA []byte)
| 2159 | } |
| 2160 | |
| 2161 | func (m *Extent) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 2162 | i := len(dAtA) |
| 2163 | _ = i |
| 2164 | var l int |
| 2165 | _ = l |
| 2166 | if m.Response != nil { |
| 2167 | { |
| 2168 | size, err := m.Response.MarshalToSizedBuffer(dAtA[:i]) |
| 2169 | if err != nil { |
| 2170 | return 0, err |
| 2171 | } |
| 2172 | i -= size |
| 2173 | i = encodeVarintQuery(dAtA, i, uint64(size)) |
| 2174 | } |
| 2175 | i-- |
| 2176 | dAtA[i] = 0x2a |
| 2177 | } |
| 2178 | if len(m.TraceId) > 0 { |
| 2179 | i -= len(m.TraceId) |
| 2180 | copy(dAtA[i:], m.TraceId) |
| 2181 | i = encodeVarintQuery(dAtA, i, uint64(len(m.TraceId))) |
| 2182 | i-- |
| 2183 | dAtA[i] = 0x22 |
| 2184 | } |
| 2185 | if m.End != 0 { |
| 2186 | i = encodeVarintQuery(dAtA, i, uint64(m.End)) |
| 2187 | i-- |
| 2188 | dAtA[i] = 0x10 |
| 2189 | } |
| 2190 | if m.Start != 0 { |
| 2191 | i = encodeVarintQuery(dAtA, i, uint64(m.Start)) |
| 2192 | i-- |
| 2193 | dAtA[i] = 0x8 |
| 2194 | } |
| 2195 | return len(dAtA) - i, nil |
| 2196 | } |
| 2197 | |
| 2198 | func (m *SampleStream) Marshal() (dAtA []byte, err error) { |
| 2199 | size := m.Size() |
no test coverage detected