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] }