template<class NativeType>
Reimplemented in Impala::Util::IOBufferChannel, and Impala::Util::IOBufferFile. Definition at line 695 of file IOBuffer.h. References GetBuffer(), GetPosition(), and SetPosition(). Referenced by Impala::Util::IOBufferFile::DoNativeTypeRead(), and NativeTypeRead(). 00696 { 00697 String fs = NativeTypeFormat<NativeType>(0); 00698 /* This seems to copy all of the remaining buffer :-( 00699 const char* start = (const char*) (GetBuffer() + GetPosition()); 00700 sscanf(start, fs.c_str(), ptr); 00701 int i = 0; 00702 while (start[i] != ' ') 00703 i++; 00704 */ 00705 char buf[1024]; 00706 unsigned char* src = GetBuffer() + GetPosition(); 00707 Int64 i = 0; 00708 while (src[i] != ' ') 00709 buf[i++] = src[i]; 00710 buf[i] = ' '; 00711 sscanf(buf, fs.c_str(), ptr); 00712 SetPosition(GetPosition() + i + 1); 00713 }
Here is the call graph for this function: ![]()
|