src/supersnappy

Source   Edit  

Types

SnappyError = object of CatchableError
Raised if an operation fails. Source   Edit  

Procs

func compress(dst: var string; src: string) {....raises: [SnappyError], tags: [],
    forbids: [].}
Compresses src into dst. This resizes dst as needed and starts writing at dst index 0. Source   Edit  
func compress(src: seq[uint8]): seq[uint8] {.inline, ...raises: [SnappyError],
    tags: [], forbids: [].}
Compresses src and returns the compressed data. Source   Edit  
func compress(src: string): string {.inline, ...raises: [SnappyError], tags: [],
                                     forbids: [].}
Compresses src and returns the compressed data. Source   Edit  
func uncompress(dst: var string; src: string) {....raises: [SnappyError], tags: [],
    forbids: [].}
Uncompresses src into dst. This resizes dst as needed and starts writing at dst index 0. Source   Edit  
func uncompress(src: seq[uint8]): seq[uint8] {.inline, ...raises: [SnappyError],
    tags: [], forbids: [].}
Uncompresses src and returns the uncompressed data. Source   Edit  
func uncompress(src: string): string {.inline, ...raises: [SnappyError], tags: [],
                                       forbids: [].}
Uncompresses src and returns the uncompressed data. Source   Edit