Home
last modified time | relevance | path

Searched refs:HEADER_LEN (Results 1 - 6 of 6) sorted by relevance

/developtools/hdc/src/common/
H A Dentry.cpp147 long int paddingSize = HEADER_LEN - (this->needSize % HEADER_LEN); in PayloadToFile()
148 long int lastBufSize = (paddingSize == HEADER_LEN) ? this->needSize : in PayloadToFile()
197 char buff[HEADER_LEN] = {0}; in WriteToTar()
198 header.GetBytes(reinterpret_cast<uint8_t *>(buff), HEADER_LEN); in WriteToTar() local
199 file.write(buff, HEADER_LEN); in WriteToTar()
209 auto pading = HEADER_LEN - (needSize % HEADER_LEN); in WriteToTar()
210 if (pading < HEADER_LEN) { in WriteToTar()
211 char pad[HEADER_LEN] in WriteToTar()
218 header.GetBytes(reinterpret_cast<uint8_t *>(buff), HEADER_LEN); WriteToTar() local
[all...]
H A Ddecompress.cpp28 uint8_t buff[HEADER_LEN]; in DecompressToLocal()
32 inFile.read(reinterpret_cast<char*>(buff), HEADER_LEN); in DecompressToLocal() local
37 if (inFile.fail() || readcnt != HEADER_LEN) { in DecompressToLocal()
41 entry = Entry(buff, HEADER_LEN); in DecompressToLocal()
63 if (fileSize == 0 || fileSize % HEADER_LEN != 0) { in CheckPath()
H A Dheader.h23 #define HEADER_LEN 512 macro
/developtools/hdc/hdc_rust/src/tar/
H A Dentry.rs23 use crate::tar::header::{self, Header, TypeFlage, HEADER_LEN};
179 let pading = HEADER_LEN - (self.need_size % HEADER_LEN); in read_data_to_file()
180 if pading < HEADER_LEN { in read_data_to_file()
H A Ddecompress.rs39 if file_size == 0 || file_size % header::HEADER_LEN as u64 != 0 { in file()
49 let mut buff = [0u8; header::HEADER_LEN as usize]; in file()
H A Dheader.rs23 pub const HEADER_LEN: u64 = 512; consts
209 if bytes.len() > HEADER_LEN as usize { in updata_name()

Completed in 6 milliseconds