mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-24 04:58:59 +00:00
18 lines
641 B
Swift
18 lines
641 B
Swift
import Foundation
|
|
|
|
public protocol ValueBox {
|
|
func begin()
|
|
func commit()
|
|
|
|
func beginStats()
|
|
func endStats()
|
|
|
|
func range(_ table: Int32, start: ValueBoxKey, end: ValueBoxKey, values: @noescape(ValueBoxKey, ReadBuffer) -> Bool, limit: Int)
|
|
func range(_ table: Int32, start: ValueBoxKey, end: ValueBoxKey, keys: @noescape(ValueBoxKey) -> Bool, limit: Int)
|
|
func get(_ table: Int32, key: ValueBoxKey) -> ReadBuffer?
|
|
func exists(_ table: Int32, key: ValueBoxKey) -> Bool
|
|
func set(_ table: Int32, key: ValueBoxKey, value: MemoryBuffer)
|
|
func remove(_ table: Int32, key: ValueBoxKey)
|
|
func drop()
|
|
}
|