@@ -83,23 +83,15 @@ struct TextEncodingNone {
83
83
int64_t size_;
84
84
85
85
#ifndef __CUDACC__
86
- std::string getString () const {
87
- return std::string (ptr_, size_);
88
- }
86
+ std::string getString () const { return std::string (ptr_, size_); }
89
87
#endif
90
88
91
89
DEVICE ALWAYS_INLINE char & operator [](const unsigned int index) {
92
90
return index < size_ ? ptr_[index] : ptr_[size_ - 1 ];
93
91
}
94
- DEVICE ALWAYS_INLINE operator char *() const {
95
- return ptr_;
96
- }
97
- DEVICE ALWAYS_INLINE int64_t size () const {
98
- return size_;
99
- }
100
- DEVICE ALWAYS_INLINE bool isNull () const {
101
- return size_ == 0 ;
102
- }
92
+ DEVICE ALWAYS_INLINE operator char *() const { return ptr_; }
93
+ DEVICE ALWAYS_INLINE int64_t size () const { return size_; }
94
+ DEVICE ALWAYS_INLINE bool isNull () const { return size_ == 0 ; }
103
95
};
104
96
105
97
#ifdef __CUDACC__
@@ -128,16 +120,10 @@ struct Column {
128
120
}
129
121
return ptr_[index];
130
122
}
131
- DEVICE int64_t size () const {
132
- return size_;
133
- }
123
+ DEVICE int64_t size () const { return size_; }
134
124
135
- DEVICE inline bool isNull (int64_t index) const {
136
- return is_null (ptr_[index]);
137
- }
138
- DEVICE inline void setNull (int64_t index) {
139
- set_null (ptr_[index]);
140
- }
125
+ DEVICE inline bool isNull (int64_t index) const { return is_null (ptr_[index]); }
126
+ DEVICE inline void setNull (int64_t index) { set_null (ptr_[index]); }
141
127
DEVICE Column<T>& operator =(const Column<T>& other) {
142
128
#ifndef __CUDACC__
143
129
if (size () == other.size ()) {
0 commit comments