From 765dcf01e38bdbb8e39ae6e5fe01355a0f0d917d Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 8 Mar 2020 23:03:10 +0100 Subject: [PATCH] Add a file for a c-array bitsery extension --- src/common/bitsery.h | 56 ++++++++++++++++++++++++++++++++++++++ src/common/serialization.h | 2 +- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 src/common/bitsery.h diff --git a/src/common/bitsery.h b/src/common/bitsery.h new file mode 100644 index 00000000..54bd3351 --- /dev/null +++ b/src/common/bitsery.h @@ -0,0 +1,56 @@ +// yabridge: a Wine VST bridge +// Copyright (C) 2020 Robbert van der Helm +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +#pragma once + +// This is a modified version of `bitsery::ext::PointerOwner` in an attempt to +// support C-style arrays with no compile time known length. This should be +// upstreamed if it works. + +#include + +// TODO: Implement + +template