Lines Matching refs:Vector
258 template <typename Vector>
259 static inline void EncodeUnsignedLeb128(Vector* dest, uint32_t value) { in EncodeUnsignedLeb128()
260 static_assert(std::is_same<typename Vector::value_type, uint8_t>::value, "Invalid value type"); in EncodeUnsignedLeb128()
297 template<typename Vector>
298 static inline void EncodeSignedLeb128(Vector* dest, int32_t value) { in EncodeSignedLeb128()
299 static_assert(std::is_same<typename Vector::value_type, uint8_t>::value, "Invalid value type"); in EncodeSignedLeb128()
312 template <typename Vector = std::vector<uint8_t>>
314 static_assert(std::is_same<typename Vector::value_type, uint8_t>::value, "Invalid value type");
317 explicit Leb128Encoder(Vector* data) : data_(data) { in Leb128Encoder()
347 const Vector& GetData() const { in GetData()
352 Vector* const data_;
359 template <typename Vector = std::vector<uint8_t>>
360 class Leb128EncodingVector final : private Vector,
361 public Leb128Encoder<Vector> {
362 static_assert(std::is_same<typename Vector::value_type, uint8_t>::value, "Invalid value type");
365 Leb128EncodingVector() : Leb128Encoder<Vector>(this) { } in Leb128EncodingVector()
367 explicit Leb128EncodingVector(const typename Vector::allocator_type& alloc) in Leb128EncodingVector()
368 : Vector(alloc), in Leb128EncodingVector()
369 Leb128Encoder<Vector>(this) { } in Leb128EncodingVector()