mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
16 lines
324 B
Plaintext
16 lines
324 B
Plaintext
// Use of this source code is governed by a BSD-style license that can be found
|
|
// in the LICENSE file.
|
|
|
|
pub error "bad GIF header"
|
|
|
|
pub struct decoder?(
|
|
lzw lzw_decoder,
|
|
temporary_hack u32,
|
|
)
|
|
|
|
pub func decoder.decode?(dst ptr buf1, src ptr buf1)() {
|
|
if this.temporary_hack != 0x47 {
|
|
return error "bad GIF header"
|
|
}
|
|
}
|