Data Tools

Data Enhancement

This is a very rough package with serveral experimental advanced data tools. Useful tools will be move to foundation library package.

Package Info

display name

AceLand Data Tools

package name

latest version

1.0.0

namespace

dependencies


Bit Generator

This is a value generator in bit unit. By designed bit shifting method, it can generate over 37m-length non-repeated pattern bit values.

uint startValue = 0b110100101;
int requestLength = 32;

// returning IEnumerable<byte>
BitGenerator.Generate(startValue, requestLength );

Data Union 32 / 64

This is a fastest way to get same memory address as different value type.

this is not changing type of value, please read Microsoft official document for details.

you may also see related google results about StructLayout of c#.


Last updated