Lines Matching refs:file_
27 file_ = nullptr;
32 file_ = file;
33 if (fseek(file_, 0, SEEK_END) != 0) {
37 auto total = ftell(file_);
48 if (file_ != nullptr) {
71 if (file_ != nullptr) {
72 if (fseek(file_, sizeof(TLVHead), SEEK_CUR) != 0) {
84 if (file_ != nullptr) {
85 if (fseek(file_, 0, SEEK_SET) != 0) {
310 if (file_ == nullptr) {
332 if (file_ == nullptr) {
347 if (file_ != nullptr) {
349 return fseek(file_, head.len * sizeof(uint8_t), SEEK_CUR) == 0;
364 if (file_ != nullptr) {
373 if (file_ == nullptr) {
382 if (file_ == nullptr) {
390 if (file_ == nullptr) {
393 auto count = fwrite(buffer_->data(), sizeof(uint8_t), buffer_->size(), file_);
403 if (file_ == nullptr) {
408 if (fseek(file_, leftOffset * sizeof(uint8_t), SEEK_CUR) != 0) {
412 auto count = fwrite(buffer_->data(), sizeof(uint8_t), sizeof(TLVHead), file_);
419 if (fseek(file_, rightOffset * sizeof(uint8_t), SEEK_CUR) != 0) {
428 if (file_ == nullptr) {
431 auto count = fread(buffer_->data(), sizeof(uint8_t), buffer_->size(), file_);