misc
This commit is contained in:
parent
ff59c45a51
commit
0a9af5ceff
|
@ -60,11 +60,10 @@ proc getBytes*(c: Chunker): Future[seq[byte]] {.async.} =
|
||||||
return move buff
|
return move buff
|
||||||
|
|
||||||
proc new*(
|
proc new*(
|
||||||
T: type Chunker,
|
T: type Chunker,
|
||||||
reader: Reader,
|
reader: Reader,
|
||||||
chunkSize = DefaultChunkSize,
|
chunkSize = DefaultChunkSize,
|
||||||
pad = true
|
pad = true): Chunker =
|
||||||
): Chunker =
|
|
||||||
## create a new Chunker instance
|
## create a new Chunker instance
|
||||||
##
|
##
|
||||||
Chunker(
|
Chunker(
|
||||||
|
@ -74,11 +73,10 @@ proc new*(
|
||||||
pad: pad)
|
pad: pad)
|
||||||
|
|
||||||
proc new*(
|
proc new*(
|
||||||
T: type LPStreamChunker,
|
T: type LPStreamChunker,
|
||||||
stream: LPStream,
|
stream: LPStream,
|
||||||
chunkSize = DefaultChunkSize,
|
chunkSize = DefaultChunkSize,
|
||||||
pad = true
|
pad = true): LPStreamChunker =
|
||||||
): LPStreamChunker =
|
|
||||||
## create the default File chunker
|
## create the default File chunker
|
||||||
##
|
##
|
||||||
|
|
||||||
|
@ -102,11 +100,10 @@ proc new*(
|
||||||
pad = pad)
|
pad = pad)
|
||||||
|
|
||||||
proc new*(
|
proc new*(
|
||||||
T: type FileChunker,
|
T: type FileChunker,
|
||||||
file: File,
|
file: File,
|
||||||
chunkSize = DefaultChunkSize,
|
chunkSize = DefaultChunkSize,
|
||||||
pad = true
|
pad = true): FileChunker =
|
||||||
): FileChunker =
|
|
||||||
## create the default File chunker
|
## create the default File chunker
|
||||||
##
|
##
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue