Add missing write method
This commit is contained in:
parent
7011ab8ace
commit
8216c2298a
@ -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 {
|
private fun allocBlock(type: BlockType): Block {
|
||||||
return allocBlocks(type, 1)[0]
|
return allocBlocks(type, 1)[0]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user