Sha256: dc707c557d5f6402b76398b65e58f3af747ea22a560d02a7a2598360587635c3
Contents?: true
Size: 564 Bytes
Versions: 16
Compression:
Stored size: 564 Bytes
Contents
// Copyright (c) 2018-2020 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/json/ #include <iostream> #include <tao/json.hpp> int main( int argc, char** argv ) { if( argc != 2 ) { std::cerr << "usage: " << argv[ 0 ] << " file.cbor" << std::endl; std::cerr << " parses the cbor file and writes it to stdout as ubjson" << std::endl; return 1; } tao::json::ubjson::events::to_stream consumer( std::cout ); tao::json::cbor::events::from_file( consumer, argv[ 1 ] ); return 0; }
Version data entries
16 entries across 16 versions & 1 rubygems