|
template<typename T> |
Result< typename Reader< T >::ResSlice, typename Reader< T >::ErrType > | mtcore::io::readers::read_until_or_eof (Reader< T > &self, typename Reader< T >::BuffSlice buff, const std::remove_const_t< typename Reader< T >::ReadElem > &delim) |
| Reads data from a reader into a Slice up until there is either a delimiter or end of file If the buffer is not big enough, the error SIZE_EXCEEDED will be returned.
|
|
template<typename T> |
Result< typename Reader< T >::BuffSlice, typename Reader< T >::ErrType > | mtcore::io::readers::read_until_or_eof (Reader< T > &self, Allocator &alloc, const std::remove_const_t< typename Reader< T >::ReadElem > &delim, size_t maxSize=std::numeric_limits< size_t >::max()) |
| Reads data from a reader into an allocated Slice up until there is either a delimiter or end of file If the buffer is not big enough, the error SIZE_EXCEEDED will be returned Will return a Slice that the caller MUST clean up with alloc.destroy_many() Will try to shrink internal buffer before returning.
|
|
template<typename T> |
Result< typename Reader< T >::ResSlice, typename Reader< T >::ErrType > | mtcore::io::readers::read_until_no_eof (Reader< T > &self, typename Reader< T >::BuffSlice buff, const std::remove_const_t< typename Reader< T >::ReadElem > &delim) |
| Reads data from a reader into a Slice up until there is either a delimiter If the buffer is not big enough, the error SIZE_EXCEEDED will be returned If the end of file is reached, the error END_OF_FILE will be returned.
|
|
template<typename T> |
Result< typename Reader< T >::BuffSlice, typename Reader< T >::ErrType > | mtcore::io::readers::read_until_no_eof (Reader< T > &self, Allocator &alloc, const std::remove_const_t< typename Reader< T >::ReadElem > &delim, size_t maxSize=std::numeric_limits< size_t >::max()) |
| Reads data from a reader into an allocated Slice up until there is either a delimiter If the buffer is not big enough, the error SIZE_EXCEEDED will be returned If the end of file is reached, the error END_OF_FILE will be returned Will return a Slice that the caller MUST clean up with alloc.destroy_many() Will try to shrink internal buffer before returning.
|
|
template<typename T> |
Reader< impl::SliceReaderImpl< T > > | mtcore::io::slice_reader (Slice< T > buff) |
| Creates a reader to read the contents of a Slice.
|
|