Name

ASCIIEncoding

Synopsis

This class is a character encoding that encodes Unicode characters as 7-bit ASCII characters. ASCII uses the first 128 characters of a Unicode encoding.

Public Class ASCIIEncoding : Inherits Encoding
' Public Constructors
   Public Sub New() 
' Public Instance Methods
   Overrides Public Function GetByteCount(
        ByVal chars As Char(), ByVal index As Integer, 
        ByVal count As Integer) As Integer  
   Overrides Public Function GetByteCount(
        ByVal chars As String) As Integer  
   Overrides Public Function GetBytes(ByVal chars As Char(), 
        ByVal charIndex As Integer, 
        ByVal charCount As Integer, ByVal bytes As Byte(), 
        ByVal byteIndex As Integer) As Integer  
   Overrides Public Function GetBytes(ByVal chars As String, 
        ByVal charIndex As Integer, 
        ByVal charCount As Integer, ByVal bytes As Byte(), 
        ByVal byteIndex As Integer) As Integer  
   Overrides Public Function GetCharCount(
        ByVal bytes As Byte(), ByVal index As Integer, 
        ByVal count As Integer) As Integer  
   Overrides Public Function GetChars(ByVal bytes As Byte(), 
        ByVal byteIndex As Integer, 
        ByVal byteCount As Integer, ByVal chars As Char(), 
        ByVal charIndex As Integer) As Integer  
   Overrides Public Function GetMaxByteCount(
        ByVal charCount As Integer) As Integer  
   Overrides Public Function GetMaxCharCount(
        ByVal byteCount As Integer) As Integer  
   Overrides Public Function GetString(
        ByVal bytes As Byte()) As String  
   Overrides Public Function GetString(ByVal bytes As Byte(), ByVal byteIndex As Integer, ByVal byteCount As Integer) As String End Class ...

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.