From 3eaae341aab5797b210903b3ee5ad429c6b33fbe Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Fri, 14 Nov 2025 17:49:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B7=D0=B2=D1=80=D0=B0=D1=82=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D1=8F=D0=B5=D0=BC=D1=8B?= =?UTF-8?q?=D1=85=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D1=81=D0=BD?= =?UTF-8?q?=D0=B8=D0=BC=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/cdcdb/snapshot.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/cdcdb/snapshot.d b/source/cdcdb/snapshot.d index 8cd534e..2b72309 100644 --- a/source/cdcdb/snapshot.d +++ b/source/cdcdb/snapshot.d @@ -38,7 +38,7 @@ private: public: this(DBLite dblite, DBSnapshot dbSnapshot) { _db = dblite; _snapshot = dbSnapshot; } - ubyte[] data() + immutable(ubyte[]) data() { auto chunks = _db.getChunks(_snapshot.id); ubyte[] content; @@ -55,7 +55,7 @@ public: enforce(_snapshot.sha256 == fctx.finish(), "Хеш итогового файла не совпадает"); - return content; + return content.idup; } void data(void delegate(const(ubyte)[]) sink)