Lines Matching defs:const
7 // A union of const uint8_t* or const uint16_t* data that can be
19 UnionBytes(const uint16_t* data, size_t length)
21 UnionBytes(const uint8_t* data, size_t length)
24 explicit UnionBytes(std::shared_ptr<std::vector</*const*/ T>> data)
29 UnionBytes(const UnionBytes&) = default;
30 UnionBytes& operator=(const UnionBytes&) = default;
34 bool is_one_byte() const { return one_bytes_ != nullptr; }
35 const uint16_t* two_bytes_data() const {
39 const uint8_t* one_bytes_data() const {
43 v8::Local<v8::String> ToStringChecked(v8::Isolate* isolate) const;
44 size_t length() const { return length_; }
47 const uint8_t* one_bytes_;
48 const uint16_t* two_bytes_;