package decompress
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=73183dc1186ab6cf1ca641146f6948f2fae6a69729ec0a1e62943385f9895077
    
    
  sha512=31508b4ae16f6850fd86391f4bb3f950bba12ac45398c8ddb1b6e74f6a96f6a150b81377d6fd49146f1f0789c43a761d709d1d73a782d9c0df0d00a3c9663c89
    
    
  doc/decompress.de/De/Queue/index.html
Module De.QueueSource
The type for commands.
The type for queues.
A command is a small representation of a `Literal or a `Copy command. A `Copy command is usually emitted by a compression algorithm to inform to copy length byte(s) appeared offset byte(s) before.
DEFLATE has some limitations about `Copy command.
push_exn q x adds the element x at the end of the queue q. It raises Full if the given queue q is full.
pop_exn q removes and returns the first element in the given queue q. It raises Empty if the given queue q is empty.
junk_exn q n discards n elements in the given queue q. If q does not have enough elements, it raises Empty and the given queue is unchanged.
end_with_eob t returns true if the last inserted command is eob. Otherwise, it returns false.
cmd command is cmd from a human-readable value.
create len allocates a new queue, initially empty. len must be a power of two, otherwise it raises Invalid_argument.