Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codepage ¶
type Codepage interface { // Encode converts the provided string to a byte array. It appends one 0x00 byte at the end. Encode(value string) []byte // Decode converts the provided byte slice to a string. It ignores trailing 0x00 bytes. Decode(data []byte) string }
Codepage wraps the methods for serializing strings. The encoded byte array is expected to be terminated by one 0x00 byte.
func DefaultCodepage ¶
func DefaultCodepage() Codepage
DefaultCodepage returns a Codepage instance that represents the one used for the resources. It is based on the Code Page 850 ( https://en.wikipedia.org/wiki/Code_page_850 ).
Click to show internal directories.
Click to hide internal directories.