MCPcopy Create free account
hub / github.com/tdewolff/canvas / Encode

Method Encode

cmd/pdftext/encoding.go:44–46  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

42}
43
44func (_ winAnsiEncoding) Encode(b []byte) ([]byte, error) {
45 return charmap.Windows1252.NewEncoder().Bytes(b)
46}
47
48func (_ winAnsiEncoding) Decode(b []byte) ([]byte, error) {
49 return charmap.Windows1252.NewDecoder().Bytes(b)

Callers

nothing calls this directly

Calls 1

BytesMethod · 0.65

Tested by

no test coverage detected