(dAtA []byte)
| 3128 | } |
| 3129 | |
| 3130 | func (m *Sample) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 3131 | i := len(dAtA) |
| 3132 | _ = i |
| 3133 | var l int |
| 3134 | _ = l |
| 3135 | if m.TimestampMs != 0 { |
| 3136 | i = encodeVarintCortex(dAtA, i, uint64(m.TimestampMs)) |
| 3137 | i-- |
| 3138 | dAtA[i] = 0x10 |
| 3139 | } |
| 3140 | if m.Value != 0 { |
| 3141 | i -= 8 |
| 3142 | encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) |
| 3143 | i-- |
| 3144 | dAtA[i] = 0x9 |
| 3145 | } |
| 3146 | return len(dAtA) - i, nil |
| 3147 | } |
| 3148 | |
| 3149 | func (m *MetricMetadata) Marshal() (dAtA []byte, err error) { |
| 3150 | size := m.Size() |
no test coverage detected