C# Class Akka.IO.ByteString

Mostra file Open project: rogeralsing/akka.net Class Usage Examples

Public Properties

Property Type Description
Empty ByteString

Public Methods

Method Description
FromArray ( byte array ) : ByteString

Creates a new ByteString by copying a byte array.

FromArray ( byte array, int offset, int length ) : ByteString

Creates a new ByteString by copying length bytes starting at offset from an Array.

FromByteBuffer ( ByteBuffer buffer ) : ByteString
FromString ( string str ) : ByteString

Creates a new ByteString which will contain the UTF-8 representation of the given String

FromString ( string str, Encoding encoding ) : ByteString

Creates a new ByteString which will contain the representation of the given String in the given charset

NewBuilder ( ) : ByteStringBuilder

Private Methods

Method Description
Compare ( ByteString b1, ByteString b2 ) : int
Create ( ByteString1 b, ByteStrings bs ) : ByteString

Method Details

FromArray() public method

Creates a new ByteString by copying a byte array.
public FromArray ( byte array ) : ByteString
array byte
return ByteString

FromArray() public method

Creates a new ByteString by copying length bytes starting at offset from an Array.
public FromArray ( byte array, int offset, int length ) : ByteString
array byte
offset int
length int
return ByteString

FromByteBuffer() public static method

public static FromByteBuffer ( ByteBuffer buffer ) : ByteString
buffer ByteBuffer
return ByteString

FromString() public static method

Creates a new ByteString which will contain the UTF-8 representation of the given String
public static FromString ( string str ) : ByteString
str string
return ByteString

FromString() public static method

Creates a new ByteString which will contain the representation of the given String in the given charset
public static FromString ( string str, Encoding encoding ) : ByteString
str string
encoding System.Text.Encoding
return ByteString

NewBuilder() public static method

public static NewBuilder ( ) : ByteStringBuilder
return ByteStringBuilder

Property Details

Empty public_oe static_oe property

public static ByteString,Akka.IO Empty
return ByteString