Standard Library

GoCompressLzw

Go stdlib package — compress/lzw. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.NewReader()Neutral
#
Signature
NewReader(r io.Reader, order Order, litWidth int) io.ReadCloser

NewReader creates a new io.ReadCloser.

.NewWriter()Neutral
#
Signature
NewWriter(w io.Writer, order Order, litWidth int) io.WriteCloser

NewWriter creates a new io.WriteCloser.

.Reader.Close()Neutral
#
Signature
Reader.Close() error

Close closes the Reader and returns an error for any future read operation.

.Reader.Read()Neutral
#
Signature
Reader.Read(b []byte) (int, error)

Read implements io.Reader, reading uncompressed bytes from its underlying Reader.

.Reader.Reset()Neutral
#
Signature
Reader.Reset(src io.Reader, order Order, litWidth int)

Reset clears the Reader's state and allows it to be reused again

.Writer.Close()Neutral
#
Signature
Writer.Close() error

Close closes the Writer, flushing any pending output. It does not close

.Writer.Reset()Neutral
#
Signature
Writer.Reset(dst io.Writer, order Order, litWidth int)

Reset clears the Writer's state and allows it to be reused again

.Writer.Write()Neutral
#
Signature
Writer.Write(p []byte) (int, error)

Write writes a compressed representation of p to w's underlying writer.

.Order()Neutral
#
Signature
type Order ...

Order specifies the bit ordering in an LZW data stream.

.Reader()Neutral
#
Signature
type Reader ...

Reader is an io.Reader which can be used to read compressed data in the

Fully-Qualified Names

FQNField
compress/lzwfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # compress/lzw