## Nim-Dagger ## Copyright (c) 2022 Status Research & Development GmbH ## Licensed under either of ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * MIT license ([LICENSE-MIT](LICENSE-MIT)) ## at your option. ## This file may not be copied, modified, or distributed except according to ## those terms. import pkg/libp2p import pkg/chronos import pkg/chronicles export libp2p, chronos, chronicles logScope: topics = "dagger seekablestream" type SeekableStream* = ref object of LPStream offset*: int method size*(self: SeekableStream): int {.base.} = raiseAssert("method unimplemented") proc setPos*(self: SeekableStream, pos: int) = self.offset = pos