MUtf8Util

class MUtf8Util

Modified UTF-8 as described in the dex file format spec.

Derived from libcore's MUTF-8 encoder at java.nio.charset.ModifiedUtf8. MUTF-8

Functions

Link copied to clipboard
open fun decode(in: ByteBuffer): String
Decodes bytes from in into out until a delimiter 0x00 is encountered.
Link copied to clipboard
open fun encode(s: String): Array<Byte>
Returns an array containing the modified UTF-8 form of s.
open fun encode(dst: Array<Byte>, offset: Int, s: String)
Encodes the modified UTF-8 bytes corresponding to s into dst, starting at offset.