mirror of
https://github.com/mpv-player/mpv
synced 2025-02-22 07:46:55 +00:00
the pointer used to initialise the respective structs is only guaranteed to be alive within this constructor. the struct itself is used later and the data it points to, is not guaranteed to be the same. to fix this we define a scope that pointer is definitely valid and use it within this scope. a helper function was added to get the pointers for several data at once. otherwise we would need to nest withUnsafeMutableBytes several times, which would make it hard to read. |
||
---|---|---|
.. | ||
libmpv_helper.swift | ||
log_helper.swift | ||
mpv_helper.swift | ||
remote_command_center.swift | ||
swift_compat.swift | ||
swift_extensions.swift |