path: root/vcs-svn/line_buffer.h
diff options
authorJonathan Nieder <>2010-10-11 02:46:24 (GMT)
committerJonathan Nieder <>2011-03-22 21:32:09 (GMT)
commit93b709c79eea6231b7d75a6817245a416b4f8fb5 (patch)
tree0718648cdcf9dd2402e0b324ac9472420d9f4740 /vcs-svn/line_buffer.h
parentefc749b48f729992d838484d652ba24f5291ee28 (diff)
vcs-svn: improve support for reading large files
Move from uint32_t to off_t as the fundamental unit of length used by the line_buffer library. Performance would get worse if anything but I think it's worth it for support of deltas that need to skip large pieces (> 4 GiB). Exception: buffer_read_string still takes a uint32_t, since it keeps its result in an in-core obj_pool. Callers still have to be updated to take advantage of this. Signed-off-by: Jonathan Nieder <> Signed-off-by: David Barr <> Signed-off-by: Jonathan Nieder <>
Diffstat (limited to 'vcs-svn/line_buffer.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/vcs-svn/line_buffer.h b/vcs-svn/line_buffer.h
index 3c9629e..a090dd6 100644
--- a/vcs-svn/line_buffer.h
+++ b/vcs-svn/line_buffer.h
@@ -26,7 +26,7 @@ char *buffer_read_line(struct line_buffer *buf);
char *buffer_read_string(struct line_buffer *buf, uint32_t len);
int buffer_read_char(struct line_buffer *buf);
void buffer_read_binary(struct line_buffer *buf, struct strbuf *sb, uint32_t len);
-void buffer_copy_bytes(struct line_buffer *buf, uint32_t len);
-void buffer_skip_bytes(struct line_buffer *buf, uint32_t len);
+void buffer_copy_bytes(struct line_buffer *buf, off_t len);
+void buffer_skip_bytes(struct line_buffer *buf, off_t len);