package decompress
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=a950f91c33af4d14b25c62dd3edf7067b4020b7f39c2664a2afa925f767be2b9
sha512=abb4994150ef724b4cbf0612e0215092818139a5eca33c2365b6fdac61e4e33323da490fd8ea1adf8348c136b11a6448b1500173352f7b61f7641d32c02f3874
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.
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.