[SOLVED] Loading a VectorBuffer in AngelScript

I’m trying to load a VectorBuffer using following code (AngelScript):

        VectorBuffer buffer;
        buffer.WriteString("some text");
        XMLFile@ xmlFile = XMLFile();

I get a “No matching signatures to ‘XMLFile:Load(VectorBuffer)’” error.

Exposing the Deserializer / Serializer class hierarchy is problematic in AngelScript because some of them are refcounted and some are not. This means that in many cases the load functions have been exposed to accept only a File handle. In this case I believe a manual overload for Resource::Load() with a vectorbuffer can be added.

Many thanks for the bindings. :slight_smile: