template<class NativeType>
Reimplemented from Impala::Util::IOBuffer. Definition at line 396 of file IOBufferFile.h. References FTell(), Impala::Util::IOBuffer::GetBuffer(), Impala::Util::IOBuffer::GetPosition(), mFile, mUseMemory, SetPosition(), and Impala::Util::IOBuffer::SetPositionAndSize(). Referenced by NativeTypeWrite(). 00397 { 00398 String fs = NativeTypeFormat<NativeType>(0) + " "; 00399 if (mUseMemory) 00400 { 00401 char* start = (char*) (GetBuffer() + GetPosition()); 00402 sprintf(start, fs.c_str(), val); 00403 Int64 i = 0; 00404 while (start[i] != ' ') 00405 i++; 00406 SetPosition(GetPosition() + i + 1); 00407 } 00408 else 00409 { 00410 fprintf(mFile, fs.c_str(), val); 00411 SetPositionAndSize(FTell(mFile)); 00412 } 00413 }
Here is the call graph for this function: ![]()
|