Coder Social home page Coder Social logo

oxen-io / oxen-encoding Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 16.0 398 KB

Base 16/32/64 and Bittorrent Encoding/Decoding Header Only Library

License: GNU Lesser General Public License v3.0

CMake 1.23% Jsonnet 2.49% C++ 95.66% C 0.05% Shell 0.57%
bencode hex base32z base64 header-only-library

oxen-encoding's Introduction

oxenc

Base 16/32/64 and Bittorrent Encoding/Decoding Header Only Library

oxen-encoding's People

Contributors

barracuda156 avatar darcys22 avatar dr7ana avatar jagerman avatar majestrate avatar tewinget avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

oxen-encoding's Issues

Some TODOs:

  • get rid of BSD-style licence from the top of source files (since we are LGPLing this)
  • Inline the bt_serialize.cpp functions so that the library can be header-only (it is small enough that it seems worthwhile to not have to add an extra linking dependency for projects).
  • Rename "oxenenc" (name directory & namespace) to shorter oxenc

Suggested fixes for `variant.h`

@jagerman Returning to this finally.

  1. Sorry, I missed it somehow earlier: we got an unneeded duplicate condition here:
    #ifdef __APPLE__
    #include <AvailabilityMacros.h>
    #if defined(__APPLE__) && (MAC_OS_X_VERSION_MIN_REQUIRED < 101400)
    #define BROKEN_APPLE_VARIANT
    #endif
    #endif

Should be just:

#ifdef __APPLE__
#include <AvailabilityMacros.h>
#if MAC_OS_X_VERSION_MIN_REQUIRED < 101400
#define BROKEN_APPLE_VARIANT
#endif
#endif

This is non-functional, but the code will be neater.

  1. variant.h does not seem to encounter any issues when GCC is used: #16 (comment)
    I have also verified that with oxen-encoding 1.0.8 now.

Should I test something else, or we can make a “broken” fallback conditional on Clang?

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.