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

Method Encode

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

Source from the content-addressed store, hash-verified

57}
58
59func (_ macRomanEncoding) Encode(b []byte) ([]byte, error) {
60 return charmap.Macintosh.NewEncoder().Bytes(b)
61}
62
63func (_ macRomanEncoding) Decode(b []byte) ([]byte, error) {
64 return charmap.Macintosh.NewDecoder().Bytes(b)

Callers

nothing calls this directly

Calls 1

BytesMethod · 0.65

Tested by

no test coverage detected