go/src/compress/flate/token.go

const lengthShift

const offsetMask

const typeMask

const literalType

const matchType

var lengthCodes

var offsetCodes

type token

// Convert a literal into a literal token.
func literalToken(literal uint32) token {}

// Convert a < xlength, xoffset > pair into a match token.
func matchToken(xlength uint32, xoffset uint32) token {}

// Returns the literal of a literal token.
func (t token) literal() uint32 {}

// Returns the extra offset of a match token.
func (t token) offset() uint32 {}

func (t token) length() uint32 {}

func lengthCode(len uint32) uint32 {}

// Returns the offset code corresponding to a specific offset.
func offsetCode(off uint32) uint32 {}