(dAtA []byte)
| 7187 | } |
| 7188 | |
| 7189 | func (m *SortMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 7190 | i := len(dAtA) |
| 7191 | _ = i |
| 7192 | var l int |
| 7193 | _ = l |
| 7194 | if m.ReadTs != 0 { |
| 7195 | i = encodeVarintPb(dAtA, i, uint64(m.ReadTs)) |
| 7196 | i-- |
| 7197 | dAtA[i] = 0x68 |
| 7198 | } |
| 7199 | if m.Offset != 0 { |
| 7200 | i = encodeVarintPb(dAtA, i, uint64(m.Offset)) |
| 7201 | i-- |
| 7202 | dAtA[i] = 0x20 |
| 7203 | } |
| 7204 | if m.Count != 0 { |
| 7205 | i = encodeVarintPb(dAtA, i, uint64(m.Count)) |
| 7206 | i-- |
| 7207 | dAtA[i] = 0x18 |
| 7208 | } |
| 7209 | if len(m.UidMatrix) > 0 { |
| 7210 | for iNdEx := len(m.UidMatrix) - 1; iNdEx >= 0; iNdEx-- { |
| 7211 | { |
| 7212 | size, err := m.UidMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 7213 | if err != nil { |
| 7214 | return 0, err |
| 7215 | } |
| 7216 | i -= size |
| 7217 | i = encodeVarintPb(dAtA, i, uint64(size)) |
| 7218 | } |
| 7219 | i-- |
| 7220 | dAtA[i] = 0x12 |
| 7221 | } |
| 7222 | } |
| 7223 | if len(m.Order) > 0 { |
| 7224 | for iNdEx := len(m.Order) - 1; iNdEx >= 0; iNdEx-- { |
| 7225 | { |
| 7226 | size, err := m.Order[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 7227 | if err != nil { |
| 7228 | return 0, err |
| 7229 | } |
| 7230 | i -= size |
| 7231 | i = encodeVarintPb(dAtA, i, uint64(size)) |
| 7232 | } |
| 7233 | i-- |
| 7234 | dAtA[i] = 0xa |
| 7235 | } |
| 7236 | } |
| 7237 | return len(dAtA) - i, nil |
| 7238 | } |
| 7239 | |
| 7240 | func (m *SortResult) Marshal() (dAtA []byte, err error) { |
| 7241 | size := m.Size() |
no test coverage detected