(f *os.File)
| 339 | } |
| 340 | |
| 341 | func (h *postHeap) addFile(f *os.File) { |
| 342 | data := mmapFile(f).d |
| 343 | m := (*[npost]postEntry)(unsafe.Pointer(&data[0]))[:len(data)/8] |
| 344 | h.addMem(m) |
| 345 | } |
| 346 | |
| 347 | func (h *postHeap) addMem(x []postEntry) { |
| 348 | h.add(&postChunk{m: x}) |