We could use GetModuleInformation to get the information of a loaded dynamic library on Windows platforms, including its base address and size. And, GetModuleHandleEx can take an address as the input and returns the module's handle. So basically, getting a dynamic library's base and size from an address is accessible.
I don't know enough about UNIX-like platforms (including Linux, macOS, iOS, Android, etc.). How can I do the same on these platforms? dladdr doesn't return the size information.