Skip to content

eighteen-k-gold-malow/ByteArrayIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

ByteArrayIO

NuGet version (ByteArrayIO)

Example

using (ByteArray stream = new ByteArray())
{
    string str1 = "";
    string str2 = "";
    Byte num = 0;

    stream.WriteString("123")
        .WriteString("456")
        .WriteUInt8(1)
        .Seek(0, System.IO.SeekOrigin.Begin)
        .ReadString((x) => str1 = x)
        .ReadString((x) => str2 = x)
        .ReadUInt8((x) => num = x);

    Debug.WriteLine("{0} {1} {2}", str1, str2, num);
}

About

ByteArray from node.js Buffer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages