bre

npm version Downloads/month Build Status codecov Dependency Status

A Object-Binary Mapper for JavaScript.

This is similar to C struct with a memory block.

”`js const bre = require(“bre”)

// Define a Record Type. const TcpHeader = bre.defineObjectRecord(“TcpHeader”, [ {type: “uint16”, name: “srcPort”}, {type: “uint16”, name: “dstPort”}, {type: “uint32”, name: “seqNo”}, {type: “uint32”, name: “ackNo”}, {type: “bit4”, name: “dataOffset”}, {skip: 6}, {type: “bit1”, name: “urgCode”}, {type: “bit1”, name: “ackCode”}, {type: “bit1”, name: “pshCode”}, {type: “bit1”, name: “rstCode”}, {type: “bit1”, name: “synCode”}, {type: “bit1”, name: “finCode”}, {type: “uint16”, name: “windowSize”}, {type: “uint16”, name: “checksum”}, {type: “uint16”, name: “urgentPonter”}, ])

// Connect to a Buffer const header = TcpHeader.view(a_buffer, 0)

// Read and Write the Buffer console.log(header.srcPort, “→”, header.dstPort, “

Related Repositories

spring-boot-microservices

spring-boot-microservices

Spring Boot Template for Micro services Architecture - Show cases how to use Zuul for API Gateway, Spring OAuth 2.0 as Auth Server, Multiple Resource (Web Services) Servers, Angular Web App, Eureka dor registration and Discover and Hystrix for circuit bre ...

bre

bre

A Binary-Object Mapper for JavaScript ...

bre

bre

tools for binaries reverse engineering ...

bre-talk-demos

bre-talk-demos

Demystifying Binary Reverse Engineering - Talk Demos ...


Top Contributors

mysticatea

Releases

-   v1.0.0 zip tar
-   v0.3.1 zip tar
-   v0.3.0 zip tar
-   v0.2.0 zip tar
-   v0.1.0 zip tar