libspotify API: image ID format?

纵饮孤独 提交于 2020-01-06 07:29:12

问题


Is the image ID returned by sp_album_cover and sp_artist_portrait zero terminated? or is its length fixed?

Thanks.


回答1:


It's an opaque struct: i.e., its contents are undefined.

If you want a sane way of printing or storing an image, convert it to a link then a string: sp_link_create_from_image() followed by sp_link_as_string().



来源:https://stackoverflow.com/questions/10882295/libspotify-api-image-id-format

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!