Lines Matching defs:fmap

116             MappedByteBuffer fmap = 
118 ELFHeader eh = new ELFHeader(fmap);
125 fmap.position(eh.e_shoff + (eh.e_shstrndx * eh.e_shentsize));
126 ELFSection stringSection = new ELFSection(fmap);
139 fmap.position(eh.e_shoff + (i * eh.e_shentsize));
141 sections[i] = new ELFSection(fmap);
143 getName(stringSection.sh_offset, sections[i].sh_name, fmap);
158 fmap.position(sections[readables[i]].sh_offset);
162 c = fmap.get();
184 private static String getName(int tab, int stroff, MappedByteBuffer fmap) {
191 while ((c = fmap.get(start++)) != 0x00) {
248 public ELFHeader(MappedByteBuffer fmap) throws IllegalArgumentException {
249 if (fmap.get(ELFIdentification.EI_MAG0.value()) != 0x7f ||
250 fmap.get(ELFIdentification.EI_MAG1.value()) != 'E' ||
251 fmap.get(ELFIdentification.EI_MAG2.value()) != 'L' ||
252 fmap.get(ELFIdentification.EI_MAG3.value()) != 'F') {
256 ei_class = EI_Class.valueOf(fmap.get(ELFIdentification.EI_CLASS.value()));
257 ei_data = EI_Data.valueOf(fmap.get(ELFIdentification.EI_DATA.value()));
258 ei_version = fmap.get(ELFIdentification.EI_VERSION.value());
261 fmap.order(ByteOrder.LITTLE_ENDIAN);
263 fmap.order(ByteOrder.BIG_ENDIAN);
266 fmap.position(ELFIdentification.EI_NIDENT.value());
267 e_type = E_Type.valueOf(fmap.getShort());
268 e_machine = E_Machine.valueOf(fmap.getShort());
269 e_version = E_Version.valueOf(fmap.getInt());
270 e_entry = fmap.getInt();
271 e_phoff = fmap.getInt();
272 e_shoff = fmap.getInt();
273 e_flags = fmap.getInt();
274 e_ehsize = fmap.getShort();
275 e_phentsize = fmap.getShort();
276 e_phnum = fmap.getShort();
277 e_shentsize = fmap.getShort();
278 e_shnum = fmap.getShort();
279 e_shstrndx = fmap.getShort();
393 public ELFSection(MappedByteBuffer fmap) {
394 sh_name = fmap.getInt();
395 sh_type = fmap.getInt();
396 sh_flags = fmap.getInt();
397 sh_addr = fmap.getInt();
398 sh_offset = fmap.getInt();
399 sh_size = fmap.getInt();
400 sh_link = fmap.getInt();
401 sh_info = fmap.getInt();
402 sh_addralign = fmap.getInt();
403 sh_entsize = fmap.getInt();