C# Class PRI.ProductivityExtensions.EncoderExtensions.Encoderable

Class that contains extension methods that extend Encoder
Mostra file Open project: peteraritchie/ProductivityExtensions

Public Methods

Method Description
Convert ( this encoder, Char chars, Byte bytes, Int32 byteIndex, Int32 byteCount, System.Boolean flush, Int32 &charsUsed, Int32 &bytesUsed, System.Boolean &completed ) : void

Extends Convert so that buffer offset of 0 and call to Array.Length are not needed. encoder.Convert(chars, bytes, byteIndex, byteCount, flush, charsUsed, bytesUsed, completed);

GetByteCount ( this encoder, Char chars, System.Boolean flush ) : Int32

Extends GetByteCount so that buffer offset of 0 and call to Array.Length are not needed. encoder.GetByteCount(chars, flush);

GetBytes ( this encoder, Char chars, Byte bytes, Int32 byteIndex, System.Boolean flush ) : Int32

Extends GetBytes so that buffer offset of 0 and call to Array.Length are not needed. encoder.GetBytes(chars, bytes, byteIndex, flush);

Method Details

Convert() public static method

Extends Convert so that buffer offset of 0 and call to Array.Length are not needed. encoder.Convert(chars, bytes, byteIndex, byteCount, flush, charsUsed, bytesUsed, completed);
public static Convert ( this encoder, Char chars, Byte bytes, Int32 byteIndex, Int32 byteCount, System.Boolean flush, Int32 &charsUsed, Int32 &bytesUsed, System.Boolean &completed ) : void
encoder this
chars Char
bytes Byte
byteIndex System.Int32
byteCount System.Int32
flush System.Boolean
charsUsed System.Int32
bytesUsed System.Int32
completed System.Boolean
return void

GetByteCount() public static method

Extends GetByteCount so that buffer offset of 0 and call to Array.Length are not needed. encoder.GetByteCount(chars, flush);
public static GetByteCount ( this encoder, Char chars, System.Boolean flush ) : Int32
encoder this
chars Char
flush System.Boolean
return System.Int32

GetBytes() public static method

Extends GetBytes so that buffer offset of 0 and call to Array.Length are not needed. encoder.GetBytes(chars, bytes, byteIndex, flush);
public static GetBytes ( this encoder, Char chars, Byte bytes, Int32 byteIndex, System.Boolean flush ) : Int32
encoder this
chars Char
bytes Byte
byteIndex System.Int32
flush System.Boolean
return System.Int32