mirror of
https://github.com/corda/corda.git
synced 2024-12-22 14:22:28 +00:00
913ba1d46e
Currently, it's more of a blob inspector than a full-blown implementation, but this code does have the ability to understand a Corda serialized blob and build a set of deserialisers to handle a blob. It does this in the same way the native java implementation works by interrogating the types (as per the definition in the envelope) and building recursive type readers that are able to pull the relevant information out of the byte stream. Lots of future work to undertake, but as a starting point its a little bit useful with the scope it could be made much more useful with some work.
23 lines
454 B
C
23 lines
454 B
C
//
|
|
// Created by Katelyn Baker on 2019-07-04.
|
|
//
|
|
|
|
#ifndef BLOB_INSPECTOR_COLOURS_H
|
|
#define BLOB_INSPECTOR_COLOURS_H
|
|
|
|
/* FOREGROUND */
|
|
#define RESET "\x1B[0m"
|
|
#define RED "\x1B[31m"
|
|
#define GREEN "\x1B[32m"
|
|
#define YELLOW "\x1B[33m"
|
|
#define BLUE "\x1B[34m"
|
|
#define MAGENTA "\x1B[35m"
|
|
#define CYAN "\x1B[36m"
|
|
#define WHITE "\x1B[37m"
|
|
|
|
|
|
#define BOLD(x) "\x1B[1m" x RESET
|
|
#define UNDL(x) "\x1B[4m" x RESET
|
|
|
|
#endif //BLOB_INSPECTOR_COLOURS_H
|