From 8216c2298ab806d0dadb0f7855aa5dc76c6bfd0f Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 19 Feb 2024 20:18:53 +0700 Subject: [PATCH] Add missing write method --- src/main/kotlin/ru/dbotthepony/kommons/io/BTreeDB6.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/kommons/io/BTreeDB6.kt b/src/main/kotlin/ru/dbotthepony/kommons/io/BTreeDB6.kt index c4a06f5..3a1a8a7 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/io/BTreeDB6.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/io/BTreeDB6.kt @@ -409,6 +409,10 @@ class BTreeDB6 private constructor(val file: File, private var reader: RandomAcc } } + fun write(key: ByteKey, value: ByteArray) { + write(key, value, 0, value.size) + } + private fun allocBlock(type: BlockType): Block { return allocBlocks(type, 1)[0] }