Giter Club home page Giter Club logo

Comments (3)

DSanchen avatar DSanchen commented on August 10, 2024

In the H5Epush2 function, it seems that the varargs are needed "only" to construct an arbitrary string "indside" the H5Epush2() call. From c#, I think this is not really necessary since you could pass an already formatted string into the function call and omit the varargs completely. Are there other functions, where varargs are needed ?

from hdf.pinvoke.

gheber avatar gheber commented on August 10, 2024

I believe this is the only API function with vargs, but I'll know for sure by the end of the week ;-)
Yes, I agree, we should get rid of the varargs completely.

from hdf.pinvoke.

gheber avatar gheber commented on August 10, 2024

No "special needs" at the moment.

[DllImport(Constants.DLLFileName, EntryPoint = "H5Epush2",
            CharSet = CharSet.Ansi,
            CallingConvention = CallingConvention.Cdecl),
        SuppressUnmanagedCodeSecurity, SecuritySafeCritical]
        public static extern herr_t push
            (hid_t estack_id, string file, string func, uint line,
            hid_t class_id, hid_t major_id, hid_t minor_id, string msg);

from hdf.pinvoke.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.