Project

dastbytes

0.0
No release in over 3 years
Data structure and byte array conversion code generate tools.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 10.0

Runtime

 Project Readme

DastBytes

Reading and writing data structures in byte arrays

Support endianness

Little endian only

Unity

https://github.com/mskz-3110/DastBytes.git?path=/Unity/DastBytes/Assets/DastBytes/Runtime#v1.0.1

Version Summary
1.0.1 Update String and VariableLength
1.0.0 Initial version

Usage

using DastBytes;

var buffer = new Buffer();
buffer.Write("data", 4);
buffer.Write(4);
buffer.Write(1.5f);
string stringValue = buffer.Read(4); // data
int intValue = bufer.Read<int>(); // 4
float floatValue = buffer.Read<float>(); // 1.5