Documentation
¶
Overview ¶
Package asset provides Go bindings for Android Asset Manager.
Index ¶
- type Asset
- func (h *Asset) Buffer() unsafe.Pointer
- func (h *Asset) Close() error
- func (h *Asset) IsAllocated() int32
- func (h *Asset) Length() Off_t
- func (h *Asset) Length64() Off64_t
- func (h *Asset) OpenFileDescriptor(outStart *Off_t, outLength *Off_t) error
- func (h *Asset) OpenFileDescriptor64(outStart *Off64_t, outLength *Off64_t) error
- func (h *Asset) Pointer() unsafe.Pointer
- func (h *Asset) Read(buf unsafe.Pointer, count uint64) error
- func (h *Asset) RemainingLength() Off_t
- func (h *Asset) RemainingLength64() Off64_t
- func (h *Asset) Seek(offset Off_t, whence int32) Off_t
- type Dir
- type Error
- type Manager
- type Mode
- type Off64_t
- type Off_t
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
// contains filtered or unexported fields
}
Asset wraps the NDK AAsset handle.
func NewAssetFromPointer ¶
NewAssetFromPointer wraps a raw AAsset pointer.
func (*Asset) IsAllocated ¶
IsAllocated returns the value directly.
func (*Asset) OpenFileDescriptor ¶
OpenFileDescriptor calls the underlying NDK function.
func (*Asset) OpenFileDescriptor64 ¶
OpenFileDescriptor64 calls the underlying NDK function.
func (*Asset) RemainingLength ¶
RemainingLength returns the value directly.
func (*Asset) RemainingLength64 ¶
RemainingLength64 returns the value directly.
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
Dir wraps the NDK AAssetDir handle.
func NewDirFromPointer ¶
NewDirFromPointer wraps a raw AAssetDir pointer.
func (*Dir) NextFileName ¶
NextFileName returns the value directly.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager wraps the NDK AAssetManager handle.
func NewManagerFromPointer ¶
NewManagerFromPointer wraps a raw AAssetManager pointer.
Click to show internal directories.
Click to hide internal directories.