From e4a23a64faf56b5822fee13d976e038174408238 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 28 May 2021 17:03:06 +1000 Subject: Support opening files bigger than 2 GiB The real technical limit is with lines bigger than 2 GiB and buffers with more than 2 Gi lines, refactor buffer loading to make it possible to load those files. Fix an overflow with the hash_data function at the same time --- src/buffer_utils.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/buffer_utils.hh') diff --git a/src/buffer_utils.hh b/src/buffer_utils.hh index dd5919a9..a3f18fe1 100644 --- a/src/buffer_utils.hh +++ b/src/buffer_utils.hh @@ -78,6 +78,7 @@ ByteCount get_byte_to_column(const Buffer& buffer, ColumnCount tabstop, DisplayCoord coord); Buffer* create_fifo_buffer(String name, int fd, Buffer::Flags flags, bool scroll = false); +Buffer* create_buffer_from_string(String name, Buffer::Flags flags, StringView data); Buffer* open_file_buffer(StringView filename, Buffer::Flags flags = Buffer::Flags::None); Buffer* open_or_create_file_buffer(StringView filename, -- cgit v1.2.3