Files
bed/include/vase/buffer/original.h
T
syedm 8c61f186cf Major fixes:
- ChunkIterator is now bidirectional
- LineIterator is now also bidirectional
- Undo/redo history operations
- Replace operation
- Range based api functions
- And more minor bug fixes
2026-08-03 20:26:02 +01:00

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();
};