mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 16:47:28 +01:00
15 lines
334 B
Plaintext
15 lines
334 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,
|
|
)
|
|
|
|
pub func decoder.decode?(dst ptr buf1, src ptr buf1)() {
|
|
if (in.src.read_u8?() != 0x47) or (in.src.read_u8?() != 0x49) {
|
|
return error "bad GIF header"
|
|
}
|
|
}
|