Robbert van der Helm
28be1dc0c9
Add a bitsery extension for serializing void*
...
Using the `native_size_t` representation. This is needed to be able to
directly serialize CLAP events.
2022-10-01 16:57:06 +02:00
Robbert van der Helm
1fec4c8860
Change the description in the GPL header
2022-04-16 20:37:10 +02:00
Robbert van der Helm
b2a15620f3
Swap Boost.Container's small_vector out for LLVM's
...
This implementation misses a shrink to fit function, but reassigning the
vector with a fresh one should be equivalent.
2022-04-16 20:37:10 +02:00
Robbert van der Helm
d2d4cf4ea9
Replace most uses of Boost.{Filesystem,Process}
...
With the `ghc::filesystem` dependency from the previous commit. If we
can replace the rest of the Boost.Filesystem dependency then we can get
rid the one nasty runtime dependency we have, and it will make
implementing the chainloading simpler since can reuse more code without
bringing in Boost.
2022-04-14 23:42:12 +02:00
Robbert van der Helm
0b9a16cf40
Change the naming scheme for class field members
...
I'm not a fan of Hungarian notation, but C++ kind of needs it with its
implicit `this`. And of all the common options for this, I find
suffixing members with an underscore the least offensive one.
2022-01-01 21:07:17 +01:00
Robbert van der Helm
e0ab24e645
Update copyright headers
...
Happy new year!
2022-01-01 18:32:10 +01:00
Robbert van der Helm
f5214b7686
Add an in place std::optional bitsery extension
...
To avoid unnecessarily recreating the object during deserialization.
This has also been upstreamed to
https://github.com/fraillt/bitsery/pull/78 .
2021-06-10 23:43:45 +02:00
Robbert van der Helm
70467a31dc
Fix compilation under GCC 11
2021-05-30 17:54:45 +02:00
Robbert van der Helm
b4c9f53bcf
Fix typo in the in place std::variant<> extension
...
We of course want to do this for non-trivial types as mentioned in the
comment above, not for trivial types...
2021-05-28 14:17:35 +02:00
Robbert van der Helm
f533dd40ce
Make the in place std::variant<> extension smarter
...
With the suggestions to use `std::get_if<>` and to only do this for
nontrivial types from
https://github.com/fraillt/bitsery/issues/76#issuecomment-850371533 .
2021-05-28 14:11:50 +02:00
Robbert van der Helm
a5ba3bdf33
Also define type erased small_vector extension
...
So bitsery knows how to handle small vectors that don't have a compile
time known size as well.
2021-05-23 14:27:55 +02:00
Robbert van der Helm
90338abe6d
Add bitsery trait for Boost.Container small_vector
...
I was going to implement these myself since we don't need them to be
contiguous like Boost's implementation is, but this is much easier of
course.
2021-05-22 23:25:36 +02:00
Robbert van der Helm
6ee905c79f
Add a realtime-safe bitsery extension for variants
...
I blindly assumed the original implementation also did this, but this
version `std::variant<Ts...>` objects from being reinitialized if we're
deserializing a variant that's also currently active in the object we're
deserializing into. For simple structs this won't make any difference,
but in yabridge we often use variants to differentiate between things
like single precision and double precision audio buffers. Those buffers
are allocated on the heap, so recreating the objects every time we
deserialize them adds a lot of unnecessary overhead.
2021-05-22 17:27:54 +02:00
Robbert van der Helm
8bfaade2a6
Change wording in the MessageReference bitsery ext
...
I had to reread the docstrings to remember what `deseerialization_store`
was, so it probably needed a better name.
2021-05-20 14:31:59 +02:00
Robbert van der Helm
d08ec70f2c
Add a bitsery adapter for MessageReference<T>
...
This lets us deserialize into an actual persistent object and then
reassign the reference to point to that object.
2021-05-07 16:23:04 +02:00
Robbert van der Helm
4a5c961b63
Get rid of unused bitsery FUID extension
...
This would need a UID conversion to be safe anyway, so it's better to
just get rid of it.
2021-01-22 13:47:11 +01:00
Robbert van der Helm
34f8d3b1d2
Update the copyright notices for 2021
2021-01-01 18:54:02 +01:00
Robbert van der Helm
79c6f02d91
Request and deserialize plugin factory from plugin
2020-12-07 18:28:16 +01:00
Robbert van der Helm
a77e2fbfae
Add Bitsery serialization for FUIDs
2020-12-07 18:28:16 +01:00
Robbert van der Helm
479852a4d0
Add a bitsery extension for serializing paths
2020-07-22 17:05:05 +02:00