8c61f186cf
- ChunkIterator is now bidirectional - LineIterator is now also bidirectional - Undo/redo history operations - Replace operation - Range based api functions - And more minor bug fixes
18 lines
346 B
C++
18 lines
346 B
C++
#pragma once
|
|
|
|
#include "buffer.h"
|
|
#include "pch.h"
|
|
|
|
struct OriginalBuffer : Buffer {
|
|
char *buf;
|
|
uint32_t len;
|
|
|
|
// Add 2 modes here, normal and lazy, lazy copies the file to a safe location and uses mmap.
|
|
OriginalBuffer(std::string path);
|
|
|
|
~OriginalBuffer();
|
|
|
|
const char *read(uint32_t pos, uint32_t *out_len);
|
|
uint32_t length();
|
|
};
|