decoders

package
v3.0.0-...-838862a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fuzz

func Fuzz(data []byte) int

Fuzz is an entrypoint for go-fuzz, which is an AFL-style fuzzing tool. This one attempts to uncover any panics during decoding.

Types

type Base64

type Base64 struct{}

func (*Base64) FromChunk

func (d *Base64) FromChunk(chunk *sources.Chunk) *sources.Chunk

type Decoder

type Decoder interface {
	FromChunk(chunk *sources.Chunk) *sources.Chunk
}

func DefaultDecoders

func DefaultDecoders() []Decoder

type UTF16

type UTF16 struct{}

func (*UTF16) FromChunk

func (d *UTF16) FromChunk(chunk *sources.Chunk) *sources.Chunk

type UTF8

type UTF8 struct{}

func (*UTF8) FromChunk

func (d *UTF8) FromChunk(chunk *sources.Chunk) *sources.Chunk

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL