| 120 | } |
| 121 | |
| 122 | const uint8_t *GetLengthPrefixedSlice(const uint8_t *p, const uint8_t *limit, |
| 123 | Slice* result) { |
| 124 | uint32_t len = 0; |
| 125 | p = GetVarint32Ptr(p, limit, &len); |
| 126 | if (p == nullptr) return nullptr; |
| 127 | if (p + len > limit) return nullptr; |
| 128 | *result = Slice(p, len); |
| 129 | return p + len; |
| 130 | } |
| 131 | |
| 132 | bool GetLengthPrefixedSlice(Slice* input, Slice* result) { |
| 133 | uint32_t len = 0; |
nothing calls this directly
no test coverage detected