summaryrefslogtreecommitdiff
path: root/src/buffer_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-05-28 17:03:06 +1000
committerMaxime Coste <mawww@kakoune.org>2021-05-28 17:03:41 +1000
commite4a23a64faf56b5822fee13d976e038174408238 (patch)
tree16f2198e342de7e1237b98aa5795fe80114632e8 /src/buffer_manager.hh
parent38f85706ffabe33734a6759a3b19405b755fffb8 (diff)
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
Diffstat (limited to 'src/buffer_manager.hh')
-rw-r--r--src/buffer_manager.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer_manager.hh b/src/buffer_manager.hh
index e89fa183..7a380959 100644
--- a/src/buffer_manager.hh
+++ b/src/buffer_manager.hh
@@ -9,6 +9,8 @@
namespace Kakoune
{
+class MappedFile;
+
class BufferManager : public Singleton<BufferManager>
{
public:
@@ -17,9 +19,7 @@ public:
~BufferManager();
- Buffer* create_buffer(String name, Buffer::Flags flags,
- StringView data = {},
- timespec fs_timestamp = InvalidTime);
+ Buffer* create_buffer(String name, Buffer::Flags flags, BufferLines lines, ByteOrderMark bom, EolFormat eolformat, FsStatus fs_status);
void delete_buffer(Buffer& buffer);