Home | History | Annotate | Download | only in Archive

Lines Matching refs:hdr

81 Archive::fillHeader(const ArchiveMember &mbr, ArchiveMemberHeader& hdr,
85 hdr.init();
88 memcpy(hdr.mode,buffer,8);
90 memcpy(hdr.uid,buffer,6);
92 memcpy(hdr.gid,buffer,6);
97 memcpy(hdr.date,buffer,12);
110 memcpy(hdr.name,ARFILE_STRTAB_NAME,16);
112 memcpy(hdr.name,ARFILE_SVR4_SYMTAB_NAME,16);
114 memcpy(hdr.name,ARFILE_BSD4_SYMTAB_NAME,16);
116 memcpy(hdr.name,ARFILE_LLVM_SYMTAB_NAME,16);
127 memcpy(hdr.name,nm,len);
128 hdr.name[len] = '/';
130 memcpy(hdr.name,mbrPath.c_str(),mbrPath.length());
131 hdr.name[mbrPath.length()] = '/';
135 memcpy(hdr.name,nm.data(),nm.length());
150 memcpy(hdr.size,buffer,10);
268 ArchiveMemberHeader Hdr;
269 bool writeLongName = fillHeader(member,Hdr,hdrSize,TruncateNames);
272 ARFile.write((char*)&Hdr, sizeof(Hdr));
297 ArchiveMemberHeader Hdr;
298 Hdr.init();
299 memcpy(Hdr.name,ARFILE_LLVM_SYMTAB_NAME,16);
303 memcpy(Hdr.mode,buffer,8);
305 memcpy(Hdr.uid,buffer,6);
307 memcpy(Hdr.gid,buffer,6);
309 memcpy(Hdr.date,buffer,12);
311 memcpy(Hdr.size,buffer,10);
314 ARFile.write((char*)&Hdr, sizeof(Hdr));