Lines Matching refs:NativeT
29 template <class NativeT,
32 typename = std::enable_if_t<std::is_scalar<NativeT>::value>>
40 MultiplyWithOverflowCheck(sizeof(NativeT), count); in AliasedBufferBase()
45 buffer_ = static_cast<NativeT*>(ab->GetBackingStore()->Data()); in AliasedBufferBase()
72 CHECK_EQ(byte_offset & (sizeof(NativeT) - 1), 0); in AliasedBufferBase()
74 CHECK_LE(MultiplyWithOverflowCheck(sizeof(NativeT), count), in AliasedBufferBase()
77 buffer_ = reinterpret_cast<NativeT*>( in AliasedBufferBase()
112 Reference(AliasedBufferBase<NativeT, V8T>* aliased_buffer, size_t index) in Reference() argument
120 inline Reference& operator=(const NativeT& val) {
126 return *this = static_cast<NativeT>(val);
129 operator NativeT() const { in NativeT() function
133 inline Reference& operator+=(const NativeT& val) {
134 const NativeT current = aliased_buffer_->GetValue(index_);
140 return this->operator+=(static_cast<NativeT>(val));
143 inline Reference& operator-=(const NativeT& val) {
144 const NativeT current = aliased_buffer_->GetValue(index_);
150 AliasedBufferBase<NativeT, V8T>* aliased_buffer_;
173 inline const NativeT* GetNativeBuffer() const { in GetNativeBuffer()
180 inline const NativeT* operator * () const {
187 inline void SetValue(const size_t index, NativeT value) { in SetValue()
195 inline const NativeT GetValue(const size_t index) const { in GetValue()
207 NativeT operator[](size_t index) const {
223 const size_t old_size_in_bytes = sizeof(NativeT) * count_; in reserve()
224 const size_t new_size_in_bytes = MultiplyWithOverflowCheck(sizeof(NativeT), in reserve()
232 NativeT* new_buffer = static_cast<NativeT*>(ab->GetBackingStore()->Data()); in reserve()
250 NativeT* buffer_;