MCPcopy Create free account
hub / github.com/apache/madlib / read

Method read

src/dbal/ByteStream_impl.hpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46template <class StreamBuf, template <class T> class TypeTraits, bool IsMutable>
47template <class T>
48inline
49const T*
50ByteStream<StreamBuf, TypeTraits, IsMutable>::read(size_t inCount) {
51 this->seek<TypeTraits<typename boost::remove_cv<T>::type>::alignment>(
52 0, std::ios_base::cur);
53 const T* pointer = this->available() >= inCount * sizeof(T)
54 ? reinterpret_cast<const T*>(this->ptr() + this->tell())
55 : NULL;
56 this->seek(inCount * sizeof(T), std::ios_base::cur);
57 return pointer;
58}
59
60template <class StreamBuf, template <class T> class TypeTraits, bool IsMutable>
61template <std::size_t Alignment>

Callers 4

_run_sql_fileFunction · 0.80
_read_args_from_filesMethod · 0.80
update_rawMethod · 0.80
detectBOMFunction · 0.80

Calls 4

availableMethod · 0.95
ptrMethod · 0.95
tellMethod · 0.95
seekMethod · 0.95

Tested by

no test coverage detected