Coder Social home page Coder Social logo

nervsdk's People

Contributors

gpbeta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nervsdk's Issues

需要中文翻译

如需中文翻译 SDK Wiki / Library, 请在本 issue 跟帖.
将按照实际情况调整翻译工作的优先级.

Copyright notice

It seems that the copyright information of README.md is occasionally missing. (The current section "Copyright" section should better be renamed to reflect the contents, e.g. "Contacts".) There is no LICENSE file, either. Does it means users have only the minimal legal rights permitted by the local laws? For a derivative work author, even simple modification and publish can be problematic. This should not be intended.

BTW (not directly the SDK issue), a DLL in SAOUtils now directly static linking to libfreetype. This ("redistribution in binary form") should be noticed as licensed (if not open-sourced, this should be FTL). So are the wxWidgets DLLs.

希望能够开源其他几个插件

现有的那两个插件太过简单,希望多开源几个插件(如HP Bar等等)以供学习。
现有的文档实在是太少了啊,API怎么用真是难以理解,估计GPBeta你最近也没多少空余时间来写文档,所以希望能通过阅读复杂点的插件源码来加深理解。

hi

can i join yours ?

NERvCopyString might return an incorrect value in some case

Here is an overloaded function in string.h

NERvSDK/include/NERvGear/string.h(140)

/// \overloadfun{NERvCopyString(size_t, const wchar_t*, size_t, wchar_t*)}
///
/// This version is used when you don't know the length of the source string, the string's length will be counted if necessary.
///
/// \header{NERvGear/string.h}
static inline size_t NERvCopyString(const wchar_t* src, size_t nCharDst, wchar_t* dst)
{
    if (dst)
        return PrivateCopyString(src, nCharDst, dst);

return NERvStringLength(src); }

According to the comment above, this function should return the same value as another overloaded function does under certain condition, which is supposed to be nCharSrc.

NERvSDK/include/NERvGear/string.h(113)

/// \brief Copies a null-terminated string to the destination buffer.
///
/// \param [in]  nCharSrc The size of the \a src buffer, in characters, including the null terminator.
...
/// \return
...
///     If \a dst is NULL and \a nCharDst is 0, the return value is \a nCharSrc.\n
///     If the function fails, the return value is 0.
///
/// \see
///     NERvCopyString(const wchar_t*, size_t, wchar_t*), NERvCopyString(const wchar_t (&)[N_CHAR], size_t, wchar_t*)
///
/// \header{NERvGear/string.h}
static inline size_t NERvCopyString(size_t nCharSrc, const wchar_t* src, size_t nCharDst, wchar_t* dst)
{
    if (dst)
        return PrivateCopyString(src, nCharDst, dst);

return nCharSrc; }

Also, the comment points out that nCharSrc includes the null terminator.
In this case, back to the first overloaded function, it seems that this function is supposed to return the length includes the null terminator.

In conclusion, perhaps the first function should be look like the one below.

static inline size_t NERvCopyString(const wchar_t* src, size_t nCharDst, wchar_t* dst)
{
    if (dst)
        return PrivateCopyString(src, nCharDst, dst);

return NERvStringLength(src) + 1; }

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.