Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alec1o/byter
Byter is a C# byte serializer. It can serialize and deserialize from primitive type e.g (class, struct, list, array, string)
https://github.com/alec1o/byter
c-sharp csharp decoder dotnet encode-decode encoder module object opensource parser primitive-parser primitive-types
Last synced: 3 days ago
JSON representation
Byter is a C# byte serializer. It can serialize and deserialize from primitive type e.g (class, struct, list, array, string)
- Host: GitHub
- URL: https://github.com/alec1o/byter
- Owner: alec1o
- License: mit
- Created: 2022-12-16T12:44:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T13:36:19.000Z (6 months ago)
- Last Synced: 2024-05-19T14:50:52.537Z (6 months ago)
- Topics: c-sharp, csharp, decoder, dotnet, encode-decode, encoder, module, object, opensource, parser, primitive-parser, primitive-types
- Language: C#
- Homepage:
- Size: 138 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
β Your star is the light at the end of our tunnel.
Lead us out of the darkness by starring Byter on GitHub.
Star me please, I beg you! π
Byter
powered by ALEC1O##### Project
> Get basic information about this project called [Byter](https://github.com/alec1o/Byter)
Overview
Byter is a C# serialization library for primitive data types, including booleans, numbers, chars, enums, strings, DateTime, BigInteger, bytes, and complex types like classes, structs, arrays, and lists, supporting unlimited complexity and depth.
Website
Repository: github.com/alec1o/byter
##### Installing
> Official publisher
Nuget
.NET CLI
NetlyInstall on Nuget
```rb
dotnet add package Byter --version 3.0.0
```Embedded, Since version 2.x.x
##### Versions
> Notable changes
v1.x.x
v2.x.x
v3.x.x
Stable
Stable
Stable
Main (Reader & Writer) Types:
Βbyte
Βbool
Βbyte[]
Βshort
Βushort
Βint
Βuint
Βlong
Βulong
Βfloat
Βdouble
Βchar
Βstring
New (Reader & Writer) Types:
βFloat2
(Vector2)
βFloat3
(Vector3)
βFloat4
(Vector4 / Quaternion)
Bug Fix. (Reader & Writer)
Support: *Primitive
New usage paradigms *Primitive
*Primitive Types:
Βbool
Βbyte
Βchar
Βshort
Βushort
Βint
Βuint
Βfloat
Βlong
Βbyte[]
Βulong
Βdouble
Βstring
Β Β Β *highlights
Βenum*
Βsbyte*
ΒDateTime*
Βdecimal*
Βclass*
Βstruct*
Βarray*
Βlist*
ΒBigInteger*
Used by. Netly v2
Used by. Netly v3
Used by. Netly v4
##### Usage
> Integration and interaction example codes
v1.x.x
v2.x.xπ Writer
### Constructor
- ###### () : ``Writer``
Create instance with empty internal buffer
- ###### (``Writer`` writer) : ``Writer``
Create instance and copy buffer of (Writer) as internal buffer
- ###### (ref ``Writer`` writer) : ``Writer``
Create instance and copy buffer of (ref Writer) as internal buffer### Proprieties
- ###### Length : ``int``
Return buffer length.### Methods
- ###### Write(T value) : ``void``
Write content in internal buffer
- ###### GetBytes() : ``byte[]``
Return buffer from (Writer) instance as byte[])
- ###### GetList() : ``List``
Return buffer from (Writer) instance as List<byte>
- ###### Clear(): ``void``
Clear internal buffer from (Writer) instanceπ Reader
### Constructor
- ###### (``byte[]`` buffer) : ``Reader``
Create instance using (Byte[]) as internal buffer
- ###### (``Writer`` writer) : ``Reader``
Create instance using (Writer) as internal buffer
- ###### (ref ``Writer`` writer) : ``Reader``
Create instance using (ref Writer) as internal buffer### Proprieties
- ###### Success : ``bool``
Return true if deserialized successful.
- ###### Position : ``int``
Return current read index.
- ###### Length : ``int``
Return buffer length.### Methods
- ###### Seek(``int`` position) : ``void``
Move position (internal buffer index)
- ###### Read<``T``>() : ``T``
Read content from iternal buffer.
- ###### Read<``string``>(``Encoding`` encoding) : ``string``
Read custom encoding string.π Example
- ###### Writer
```csharp
using Byter;
Writer w = new();
// write data
w.Write("Powered by ALEC1O");
w.Write("η± ALEC1O ζδΎζ―ζ", Encoding.UTF32);
w.Write((int)1000000);` // 1.000.000
w.Write((char)'A');
w.Write((long)-1000000000); // -100.0000.000
w.Write((byte[])[0, 1, 2, 3]);
// Float(1|2|3) only available in version 2
w.Write(new Float2(-100F, 300F));
w.Write(new Float3(-100F, 300F, 600F));
w.Write(new Float4(-100F, 300F, 600F, 900F));
// get buffer
byte[] buffer = w.GetBytes();
// example send buffer
Magic.Send(buffer);
```
- ###### Reader
```csharp
using Byter;
// example receive buffer
byte[] buffer = Magic.Receive();
// create instance
Reader r = new()
// read data
string noticeInEnglish = r.Read(); // Powered by ALEC1O
string noticeInChinese = r.Read(Encoding.UTF32); // η± ALEC1O ζδΎζ―ζ
int myInt = r.Read(); // 1.000.000
char myChar = r.Read(); // 'A'
long myLong = r.Read(); // -100.0000.000
byte[] myBytes = r.Read(); // [0, 1, 2, 3]
// Float(1|2|3) only available in version 2
Float2 myFloat2 = r.Read(); // [x: -100F] [y: 300F]
Float3 myFloat3 = r.Read(); // [x: -100F] [y: 300F] [z: 600F]
Float4 myFloat4 = r.Read(); // [x: -100F] [y: 300F] [z: 600F] [w: 900F]
if (r.Sucess)
{
// sucess on read all data
}
else
{
// one or more data isn't found when deserialize. Might ignore this buffer!
}
```- ###### Dynamic Read Technical
```csharp
var r = new Reader(...);
var topic = r.Read(Encoding.ASCII);
if(!r.Sucess) return; // ignore this
if (topic == "login")
{
string username = r.Read(Encoding.UTF32);
string password = r.Read(Encoding.ASCII);
if (!r.Sucess) return; // ignore this
// login user...
}
else if(topic == "get user address")
{
ulong userId = r.Read();
string token = r.Read(Encoding.ASCII);
if (!r.Sucess) return; // ignore this
// get user adress...
}
...
else
{
// ignore this. (Topic not found)
}
```v3.x.x
π Primitive
### Constructor
- ###### () : ``Primitive``
Create instance with empty internal buffer
- ###### (``byte[]`` buffer) : ``Primitive``
Create instance using (Byte[]) as internal buffer### Proprieties
- ###### Position : ``int``
Return internal reading index/position.
- ###### IsValid : ``bool``
Return (true) if data was read successful. otherwise (false)
- ###### Add : ``IPrimitiveAdd``
Object used to (read/get) content from internal (Primitive) buffer
- ###### Get : ``IPrimitiveGet``
Object used to (write/add) content in internal (Primitive) buffer### Methods
- ###### GetBytes() : ``byte[]``
Return buffer from (Primitive) instance as byte[])
- ###### GetList() : ``List``
Return buffer from (Primitive) instance as List<byte>
- ###### Reset(): ``void``
Clear internal buffer from (Primitive) instanceπ IPrimitiveAdd
### Methods
- ###### Bool(``bool`` value) ``void``
(Write/Add) element typeof(bool) in internal buffer
- ###### Byte(``byte`` value) ``void``
(Write/Add) element typeof(byte) in internal buffer
- ###### SByte(``sbyte`` value) ``void``
(Write/Add) element typeof(sbyte) in internal buffer
- ###### Char(``char`` value) ``void``
(Write/Add) element typeof(char) in internal buffer
- ###### Short(``short`` value) ``void``
(Write/Add) element typeof(short) in internal buffer
- ###### UShort(``ushort`` value) ``void``
(Write/Add) element typeof(ushort) in internal buffer
- ###### Int(``int`` value) ``void``
(Write/Add) element typeof(int) in internal buffer
- ###### UInt(``uint`` value) ``void``
(Write/Add) element typeof(uint) in internal buffer
- ###### Float(``float`` value) ``void``
(Write/Add) element typeof(float) in internal buffer
- ###### Enum<``T``>(``T`` value) ``void``
(Write/Add) element typeof(enum) in internal buffer
- ###### Long(``long`` value) ``void``
(Write/Add) element typeof(long) in internal buffer
- ###### ULong(``ulong`` value) ``void``
(Write/Add) element typeof(ulong) in internal buffer
- ###### Double(``double`` value) ``void``
(Write/Add) element typeof(double) in internal buffer
- ###### DateTime(``DateTime`` value) ``void``
(Write/Add) element typeof(DateTime) in internal buffer
- ###### Decimal(``decimal`` value) ``void``
(Write/Add) element typeof(decimal) in internal buffer
- ###### String(``string`` value) ``void``
(Write/Add) element typeof(string) in internal buffer
- ###### Class<``T``>(``T`` value) ``void``
(Write/Add) element typeof(T) in internal buffer
- ###### Struct<``T``>(``T`` value) ``void``
(Write/Add) element typeof(T) in internal buffer
- ###### Array<``T``>(``T`` value) ``void``
(Write/Add) element typeof(T[]) in internal buffer
- ###### List<``T``>(``List`` value) ``void``
(Write/Add) element typeof(List) in internal buffer
- ###### BigInteger(``BigInteger`` value) ``void``
(Write/Add) element typeof(BigInteger) in internal buffer
- ###### Bytes(``byte[]`` value) ``void``
(Write/Add) element typeof(byte[]) in internal bufferπ IPrimitiveGet
### Methods
- ###### Bool() ``bool``
(Read/Get) element typeof(bool) from internal buffer
- ###### Byte() ``byte``
(Read/Get) element typeof(byte) from internal buffer
- ###### SByte() ``sbyte``
(Read/Get) element typeof(sbyte) from internal buffer
- ###### Char() ``char``
(Read/Get) element typeof(char) from internal buffer
- ###### Short() ``short``
(Read/Get) element typeof(short) from internal buffer
- ###### UShort() ``ushort``
(Read/Get) element typeof(ushort) from internal buffer
- ###### Int() ``int``
(Read/Get) element typeof(int) from internal buffer
- ###### UInt() ``uint``
(Read/Get) element typeof(uint) from internal buffer
- ###### Float() ``float``
(Read/Get) element typeof(float) from internal buffer
- ###### Enum<``T``>() ``T``
(Read/Get) element typeof(enum) from internal buffer
- ###### Long() ``long``
(Read/Get) element typeof(long) from internal buffer
- ###### ULong() ``ulong``
(Read/Get) element typeof(ulong) from internal buffer
- ###### Double() ``double``
(Read/Get) element typeof(double) from internal buffer
- ###### DateTime() ``DateTime``
(Read/Get) element typeof(DateTime) from internal buffer
- ###### Decimal() ``decimal``
(Read/Get) element typeof(decimal) from internal buffer
- ###### String() ``string``
(Read/Get) element typeof(string) from internal buffer
- ###### Class<``T``> () ``T``
(Read/Get) element typeof(T) from internal buffer
- ###### Struct<``T``>() ``T``
(Read/Get) element typeof(T) from internal buffer
- ###### Array<``T``>() ``T[]``
(Read/Get) element typeof(T[]) from internal buffer
- ###### List<``T``>() ``List``
(Read/Get) element typeof(List
- ###### BigInteger() ``BigInteger``
(Read/Get) element typeof(BigInteger) from internal buffer
- ###### Bytes() ``byte[]``
(Read/Get) element typeof(byte[]) from internal bufferπ Example
- ###### Add Element
```csharp
using Byter;
Primitive primitive = new();
// write elements
primitive.Add.Class(myCharacterInfoClass);
primitive.Add.Array(myCharacterArray);
primitive.Add.List(myLogList);
primitive.Add.Struct(myDeviceStruct);
primitive.Add.DateTime(DateTime.UtcNow);
primitive.Add.Enum(MyEnum.Option1);
primitive.Add.Bytes(myImageBuffer);
// send buffer
byte[] buffer = primitive.GetBytes();
Magic.Send(buffer); // EXAMPLE!
```- ###### Get Element
```csharp
using Byter;
// receive bugger
byte[] buffer = Magic.Receive(); // EXAMPLE!
Primitive primitive = new(buffer);
// read elements
var myCharacterInfoClass = primitive.Get.Class();
var myCharacterArray = primitive.Get.Array();
var myLogList = primitive.Get.List();
var myDeviceStruct = primitive.Get.Struct();
var myTime = primitive.Get.DateTime();
var myEnum = primitive.Get.Enum();
var myImageBuffer = primitive.Get.Bytes();
if (primitive.IsValid)
{
// sucess on read all data
}
else
{
// one or more data isn't found when deserialize. Might ignore this buffer!
}
```- ###### Dynamic Read Technical
```csharp
Primitive primitive = new(...);
var topic = primitive.Get.String();
if(!primitive.IsValid) return; // ignore this
if (topic == "login")
{
var loginInfo = primitive.Get.Class();
if (!primitive.IsValid) return; // ignore this
// login user...
}
else if (topic == "get user address")
{
var getUserAddressInfo = primitive.Get.Class();
if (!primitive.IsValid) return; // ignore this
// get user adress...
}
...
else
{
// ignore this. (Topic not found)
}
```
##### Overhead (supported types list)
> Byter overhead information
| Type | Primitive (overhead + size = total) | Writer/Reader (overhead + size = total) |
|-----------------------|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|
| Bool | βοΈ (1 + 1 = 2 bytes) | βοΈ (2 + 1 = 3 bytes) |
| Byte | βοΈ (1 + 1 = 2 bytes) | βοΈ (2 + 1 = 3 bytes) |
| SByte | βοΈ (1 + 2 = 2 bytes) | π« |
| Char | βοΈ (1 + 2 = 3 bytes) | βοΈ (2 + 2 = 4 bytes) |
| Short | βοΈ (1 + 2 = 3 bytes) | βοΈ (2 + 2 = 4 bytes) |
| UShort | βοΈ (1 + 2 = 3 bytes) | βοΈ (2 + 2 = 4 bytes) |
| Int | βοΈ (1 + 4 = 5 bytes) | βοΈ (2 + 4 = 6 bytes) |
| UInt | βοΈ (1 + 4 = 5 bytes) | βοΈ (2 + 4 = 6 bytes) |
| Float | βοΈ (1 + 4 = 5 bytes) | βοΈ (2 + 4 = 6 bytes) |
| Enum | βοΈ (1 + 4 = 5 bytes) | π« |
| Long | βοΈ (1 + 8 = 9 bytes) | βοΈ (2 + 8 = 10 bytes) |
| ULong | βοΈ (1 + 8 = 9 bytes) | βοΈ (2 + 8 = 10 bytes) |
| Double | βοΈ (1 + 8 = 9 bytes) | βοΈ (2 + 8 = 10 bytes) |
| DateTime | βοΈ (1 + 8 = 9 bytes) | π« |
| Decimal | βοΈ (1 + 16 = 17 bytes) | π« |
| String | βοΈ (5 + ? = +5 bytes) *UTF8 | βοΈ (6 + ? = +6 bytes) |
| Class | βοΈ (2 + 0 = 2 bytes) | π« |
| Struct | βοΈ (2 + 0 = 2 bytes) | π« |
| Array | βοΈ (3 + ? = +3 bytes) *Max. 65535 | π« |
| List | βοΈ (3 + ? = +3 bytes) *Max. 65535 | π« |
| BigInteger | βοΈ (3 + ? = +3 bytes) | π« |
| Bytes | βοΈ (5 + ? = +5 bytes) *Max. 4.294.967.295 *(~4billions) | βοΈ (6 + ? = +6 bytes) *Max. 2.147.483.647 *(~2billions) |
### Encoding Extension
```csharp
using Byter;
```- Global Default
Encoding [(source code spec)](https://github.com/alec1o/Byter/blob/main/src/src/extension/StringExtension.cs#L8)
```csharp
// update global defaut encoding. Default is UTF8
StringExtension.Default = Encoding.Unicode; // Unicode is UTF16
```- Convert string to byte[]
```csharp
// using global encoding (*UTF8)
byte[] username = "@alec1o".GetBytes();
// using UNICODE (*UTF16) encoding
byte[] message = "Hello π World π".GetBytes(Encoding.Unicode);
// using UTF32 encoding
string secreatWord = "I'm not human, I'm a concept.";
byte[] secreat = secreatWord.GetBytes(Encoding.UTF32);
```- Convert byte[] to string
```csharp
// using global encoding (*UTF8)
string username = new byte[] { ... }.GetString();
// using UNICODE (*UTF16) encoding
string message = new byte[] { ... }.GetString(Encoding.Unicode);
// using UTF32 encoding
byte[] secreat = new byte[] { ... };
string secreatWord = secreat.GetString(Encoding.UTF32);
```- Capitalize string
```rb
string name = "alECio furanZE".ToCapitalize();
# Alecio Furanze
string title = "i'M noT humAn";
title = title.ToCapitalize();
# I'm Not Human
```- UpperCase string
```rb
string name = "alECio furanZE".ToUpperCase();
# ALECIO FURANZE
string title = "i'M noT humAn";
title = title.ToUpperCase();
# I'M NOT HUMAN
```- LowerCase string
```rb
string name = "ALEciO FUraNZE".ToLowerCase();
# alecio furanze
string title = "i'M Not huMAN";
title = title.ToLowerCase();
# i'm not human
```Legacy Docs (v1.x.x - v2.x.x)
# Byter
Byter is a bytes serializer. It can serialize and deserialize from primitive type.
> ###### Byter is very stable, super easy to learn, extremely fast and inexpensive (2 bytes or ``sizeof(char)`` of overhead per data written) and ``100%`` written in ``C#`` and it's FREE!
## Install
- #### Nuget [SEE HERE](https://www.nuget.org/packages/Byter)
###### .NET CLI
```rb
dotnet add package Byter --version 2.0
```
###### Git submodule
See how add as git submodule? See on bottom of this docs
## Usage
#### Namespace
```csharp
using Byter
```#### Types
```ts
[
`byte`,
`bool`,
`byte[]`,
`short`,
`ushort`,
`int`,
`uint`,
`long`,
`ulong`,
`float`,
`double`,
`char`,
`string`,
`Float2`(Vector2),
`Float3`(Vector3),
`Float4`(Vector4 / Quaternion),
]
```
## Writer
> Constructor
-
```cs
_ = new Writer(); // Create default instance
_ = new Writer(new Writer()); // Create instance and copy from existing Writer
_ = new Writer(ref new Writer()); // Create instance and copy from existing Writer (using ref)
```
> Proprietary
- #### ``Length``
```cs
using Byter;var w = new Writer();
// Get lenght of buffer
int lenght = w.Length;
```
> Methods
- #### ``Write(dynamic value)``
```cs
using Byter;// Create writer instance;
using var w = new Writer();
// Write string
w.Write("KEZERO");// Write char
w.Write('K');// Write Float3 (Vector3)
w.Write(new Float3(10F, 10F, 10F));// Get bytes (buffer)
byte[] buffer = w.GetBytes();// Get byte list (buffer)
List bytes = w.GetList();
```- #### ``GetBytes()``
```cs
using Byter;var w = new Writer();
// Return buffer on instance
byte[] buffer = w.GetBytes();
```- #### ``GetList()``
```cs
using Byter;var w = new Writer();
// Return buffer on instance as byte list
List bytes = w.GetList();
```- #### ``Clear()``
```cs
using Byter;var w = new Writer();
w.Write((int)1000);
w.Write((float)100f);// Clear internal buffer and reset internal index
w.Clear();
```
## Reader
> Constructor
-
```cs
_ = new Reader(new Writer()); // Create instance and copy buffer from existing Writer
_ = new Reader(ref new Writer()); // Create instance and copy buffer from existing Writer (ref Writer)
_ = new Reader(new byte[] { 1, 1, 1, 1 }); // Create instance from buffer (bytes (byte[]))
```
> Proprietary
- #### ``Length``
```cs
using Byter;byte[] buffer = ...;
var r = new Reader(buffer);// Get lenght of buffer
int lenght = r.Length;
```- #### ``Position``
```cs
using Byter;byte[] buffer = ...;
var r = new Reader(buffer);// return current index of readed buffer
int position = r.Position;
```- #### ``Success``
```cs
using Byter;byte[] buffer = ...;
var r = new Reader(buffer);
string name = r.Read();
int age = r.Read();
// return true if not exist problem on read values.
// return false when have any error on read values;
bool success = r.Success;
```
- ###### WARNING
Internally, before data is written a prefix is added in front of it, so when reading it always compares the prefix
of the (data type) you want to read with the strings in the read buffer. if the prefixes do not match then o (
Reader. Success = False), eg. If you write an (int) and try to read a float (Reader.Success = False) because the
prefix of an (int) is different from that of a (float), it is recommended to read all the data and at the end
check the success, if it is (Reader.Success = False) then one or more data is corrupt. This means that Writer and
Reader add dipping to your write and read data.
> Methods
- #### ``Read()`` ``Read(Encoding encoding)``;
```cs
using Byter;byte[] buffer = ...;
// Create reader instance
using r = new Reader(buffer);string name = r.Read();
char firstLatter = r.Read();
Float3 position = r.Read();// Check if is success
if (r.Success)
{
Console.WriteLine($"Name: {name}");
Console.WriteLine($"First Latter: {firstLatter}");
Console.WriteLine($"Position: {position}");
}
else
{
Console.WriteLine("Error on get data");
}
```- #### ``Seek(int position)``;
```cs
using Byter;using var w = new Writer();
w.Write("KEZERO");
w.Write((int) 1024);using var r = new Reader(ref w);
string name = r.Read(); // name: KEZERO
int age = r.Read(); // age: 1024
// Move index (Reader.Position) for target value "MIN VALUE IS 0";
r.Seek(10); // move current index for read for 10 (when start read using .Read will start read on 10 index from buffer);// Reset internal position
r.Seek(0);string name2 = r.Read(); // name: KEZERO (because the start index of this string on buffer is 0)
int age2 = r.Read(); age: 1024;// NEED READ LAST INT
r.Seek(r.Position - sizeof(int) + sizeof(char) /* int size is 4 + char size is 2. The 2 bytes is overhead of protocol */);
int age3 = r.Read(); age: 1024 (because i return 4bytes before old current value)
```
#### Sample
```csharp
using Byter;// writing
Writer writer = new();writer.Write(1000); // index
writer.Write("{JSON}"); // content
writer.Write(new byte[]{ 1, 1, 1, 1 }); // image// geting buffer
byte[] buffer = writer.GetBytes();
writer.Dispose(); // Destroy Writer// reading
Reader reader = new(buffer);int index = reader.Read();
string json = reader.Read();
byte[] image = reader.Read();// Check error
if (!reader.Success) // IS FALSE
{
Console.WriteLine("*** ERROR ****");
return;
}// Check success
Console.WriteLine("*** SUCCESS ****");// Output
Console.WriteLine($"Index: {index}"); // output: 1000
Console.WriteLine($"JSON : {json }"); // output: JSON
Console.WriteLine($"Image: {image.Length}"); // output: 4
Console.WriteLine($"Status: {reader.Success}"); // output: True// Making error
float delay = reader.Read();
/*
WARNING:
if you reverse the reading order or try to read more data than added (Reader.Succes = False),
Remembering does not return exception when trying to read data that does not exist it just
returns the default construction, and (Reader.Success) will be assigned (False) */if (reader.Success) // IS FALSE, THE IS NOT WRITED IN BUFFER
Console.WriteLine($"Delay: {delay}");
else // IS TRUE, THE DELAY NOT EXIST
Console.WriteLine($"Delay not exist");// Output of status
Console.WriteLine($"Status: {reader.Success}"); // output: Falsereader.Dispose(); // Destroy Reader
```
#### Install using git submodule
```rb
# Install - recommend a stable branch e.g. "1.x" or use a fork repository, --depth clone last sources
git submodule add --name byter --depth 1 --branch main "https://github.com/alec1o/byter" vendor/byter# Rebuilding - Download repository and link it in file location, must add this step in dotnet.yaml if using
git submodule update --init# Update submodule - Update and load new repository updates
git submodule update --remote# PATH
# |__ vendor
# | |__ byter
# | |__ src
# | |__ Byter.csproj
# |
# |__ app
# | |__ app.csproj
# |
# |__ app.sln
# |__ .git
# |__ .gitignore
# |__ .gitmodules# .NET link on .sln
cd
dotnet sln add vendor/byter/src/Byter.csproj# .NET link on .csproj
cd app/
dotnet add reference ../vendor/byter/src/Byter.csproj
# Rebuild dependencies to be linked in the project
dotnet restore
```