llvm.org GIT mirror llvm / 25c6cec
Expand the comment on getOpenFileSlice a bit for more details and consistency git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186987 91177308-0d34-0410-b5e6-96231b3b80d8 Eli Bendersky 7 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7373 int64_t FileSize = -1,
7474 bool RequiresNullTerminator = true);
7575
76 // Get a MemoryBuffer of part of a file. Since this is in the middle of a
77 // file, the buffer is not null terminated.
76 /// Given an already-open file descriptor, map some slice of it into a
77 /// MemoryBuffer. The slice is specified by an \p Offset and \p MapSize.
78 /// Since this is in the middle of a file, the buffer is not null terminated.
7879 static error_code getOpenFileSlice(int FD, const char *Filename,
7980 OwningPtr &Result,
8081 uint64_t MapSize, int64_t Offset);