Documentation ¶
Index ¶
- Variables
- func CastBytesToInt32s(s []byte) []int32
- func CastBytesToInt8s(s []byte) []int8
- func CastBytesToUint32s(s []byte) []uint32
- func CastInt8sToBytes(s []int8) []byte
- func CastInt8sToUint16s(s []int8) []uint16
- func CastUint16sToInt8s(s []uint16) []int8
- func DecodeMUTF8(bytearr []byte) string
- func DotToSlash(name string) string
- func IsDir(path string) bool
- func IsExists(path string) bool
- func IsJModFile(name string) bool
- func IsJarFile(name string) bool
- func IsZipFile(name string) bool
- func SlashToDot(name string) string
- func UTF16ToUTF8(s []uint16) string
- func UTF8ToUTF16(s string) []uint16
- type BytesReader
- type Dir
- type JModFile
- type StringBuilder
- type ZipFile
Constants ¶
This section is empty.
Variables ¶
View Source
var NativeEndian nativeEndian
Functions ¶
func CastBytesToInt32s ¶
func CastBytesToInt8s ¶
func CastBytesToUint32s ¶
func CastUint16sToInt8s ¶
func DecodeMUTF8 ¶
mutf8 -> utf16 -> utf32 -> string see java.io.DataInputStream.readUTF(DataInput)
func DotToSlash ¶
func IsJModFile ¶
func SlashToDot ¶
func UTF16ToUTF8 ¶
func UTF8ToUTF16 ¶
Types ¶
type BytesReader ¶
type BytesReader struct {
// contains filtered or unexported fields
}
func NewBytesReader ¶
func NewBytesReader(data []byte, byteOrder binary.ByteOrder) BytesReader
func (*BytesReader) Position ¶
func (reader *BytesReader) Position() int
func (*BytesReader) ReadBytes ¶
func (reader *BytesReader) ReadBytes(n int) []byte
func (*BytesReader) ReadUint16 ¶
func (reader *BytesReader) ReadUint16() uint16
func (*BytesReader) ReadUint32 ¶
func (reader *BytesReader) ReadUint32() uint32
func (*BytesReader) ReadUint64 ¶
func (reader *BytesReader) ReadUint64() uint64
func (*BytesReader) ReadUint8 ¶
func (reader *BytesReader) ReadUint8() uint8
type JModFile ¶
type JModFile struct {
// contains filtered or unexported fields
}
func NewJModFile ¶
func OpenJModFile ¶
type StringBuilder ¶
type StringBuilder struct {
// contains filtered or unexported fields
}
func NewStringBuilder ¶
func NewStringBuilder() *StringBuilder
func (*StringBuilder) Append ¶
func (sb *StringBuilder) Append(ss ...string)
func (*StringBuilder) String ¶
func (sb *StringBuilder) String() string
type ZipFile ¶
type ZipFile struct {
// contains filtered or unexported fields
}
func NewZipFile ¶
func OpenZipFile ¶
Click to show internal directories.
Click to hide internal directories.