示例#1
0
func QuickLoad_RAW(mem *uint8, len_ uint32) (chunk *Chunk, err error) {
	_mem := (*C.Uint8)(mem)
	_len := (C.Uint32)(len_)
	chunk = (*Chunk)(unsafe.Pointer(C.Mix_QuickLoad_RAW(_mem, _len)))
	if chunk == nil {
		err = sdl.GetError()
	}
	return
}
示例#2
0
func QuickLoad_RAW(mem *uint8, len_ uint32) *Chunk {
	_mem := (*C.Uint8)(mem)
	_len := (C.Uint32)(len_)
	return (*Chunk)(unsafe.Pointer(C.Mix_QuickLoad_RAW(_mem, _len)))
}