Documentation ¶
Index ¶
- func DecodeUTF8(in string) []rune
- func EncodeASCIIWithNullTerminator(val string) []byte
- func EncodeRunes(enc byte, val []rune) []byte
- func EncodeRunesWithNullTerminator(enc byte, val []rune) []byte
- func Equal(a, b []rune) bool
- func EqualBytes(a, b []byte) bool
- func ExtractNullTerminated(b []byte) []rune
- func ExtractNullTerminatedASCII(b []byte) string
- func ExtractNullTerminatedValueWithEncoding(enc byte, data []byte) ([]rune, int)
- func ExtractUnicode(b []byte) []rune
- func ExtractUnicodeNullTerminated(b []byte) []rune
- func ExtractValueWithEncoding(enc byte, data []byte) ([]rune, int)
- func IsASCII(in []rune) bool
- func IsASCIIBytes(in []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeUTF8 ¶
DecodeUTF8 is used when we have a JSON representation of a Frame.
func EncodeRunes ¶
func EncodeRunesWithNullTerminator ¶
EncodeRunesWithNullTerminator adds all the extra bytes that id3v2.3 expects. In the case where the information is only ascii, (enc: 0), simply add a null terminator In the case of UTF-16, (enc: 1), add a BOM, then the string, then two null terminators (unicode null).
func EqualBytes ¶
func ExtractNullTerminated ¶
ExtractNullTerminated is to be used when only a single null terminator ends a string.
func ExtractUnicode ¶
func ExtractUnicodeNullTerminated ¶
ExtractNullTerminatedUnicode gets the two BOM bytes, looks for a unicode null, then extracts the middle.
func IsASCII ¶
IsASCII returns true if it's only ascii; otherwise assume UTF-16 since UTF-8 is not used.
func IsASCIIBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.