예제 #1
0
func (ex *Extractor) File(filename string) []Meta {
	cfilename := C.CString(filename)
	defer C.free(unsafe.Pointer(cfilename))
	metas := make([]Meta, 0)
	C._extract_wrap(ex.clist, cfilename, nil, 0, unsafe.Pointer(&metas))
	return metas
}
예제 #2
0
func (ex *Extractor) Memory(data []byte) []Meta {
	metas := make([]Meta, 0)
	C._extract_wrap(ex.clist, nil, unsafe.Pointer(&data[0]), C.size_t(len(data)), unsafe.Pointer(&metas))
	return metas
}