// Returns the number of bytes required to encode a range of characters in
// a character array.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetByteCount(char[] chars, int index, int count)
{
return EncodingForwarder.GetByteCount(this, chars, index, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetByteCount(String chars)
{
return EncodingForwarder.GetByteCount(this, chars);
return EncodingForwarder.GetByteCount(this, chars, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetBytes(String chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// determine the maximum number of bytes that will be produced for a given
// number of characters, regardless of the actual character values.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// Returns the number of characters produced by decoding a range of bytes
// in a byte array.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetCharCount(byte[] bytes, int index, int count)
{
return EncodingForwarder.GetCharCount(this, bytes, index, count);
return EncodingForwarder.GetCharCount(this, bytes, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetChars(byte[] bytes, int byteIndex, int byteCount,
char[] chars, int charIndex)
{
// Returns a string containing the decoded representation of a range of
// bytes in a byte array.
- [System.Security.SecuritySafeCritical] // auto-generated
public override String GetString(byte[] bytes, int byteIndex, int byteCount)
{
return EncodingForwarder.GetString(this, bytes, byteIndex, byteCount);
// See the LICENSE file in the project root for more information.
using System.Diagnostics.Contracts;
+using System.Security;
namespace System.Text
{
// the parameter, it will call the same method again, which will eventually
// lead to a StackOverflowException.
+ [SecuritySafeCritical]
public unsafe static int GetByteCount(Encoding encoding, char[] chars, int index, int count)
{
// Validate parameters
return encoding.GetByteCount(pChars + index, count, encoder: null);
}
+ [SecuritySafeCritical]
public unsafe static int GetByteCount(Encoding encoding, string s)
{
Contract.Assert(encoding != null);
return encoding.GetByteCount(pChars, s.Length, encoder: null);
}
+ [SecurityCritical]
public unsafe static int GetByteCount(Encoding encoding, char* chars, int count)
{
Contract.Assert(encoding != null);
return encoding.GetByteCount(chars, count, encoder: null);
}
+ [SecuritySafeCritical]
public unsafe static int GetBytes(Encoding encoding, string s, int charIndex, int charCount, byte[] bytes, int byteIndex)
{
Contract.Assert(encoding != null);
}
}
+ [SecuritySafeCritical]
public unsafe static int GetBytes(Encoding encoding, char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)
{
Contract.Assert(encoding != null);
}
}
+ [SecurityCritical]
public unsafe static int GetBytes(Encoding encoding, char* chars, int charCount, byte* bytes, int byteCount)
{
Contract.Assert(encoding != null);
return encoding.GetBytes(chars, charCount, bytes, byteCount, encoder: null);
}
+ [SecuritySafeCritical]
public unsafe static int GetCharCount(Encoding encoding, byte[] bytes, int index, int count)
{
Contract.Assert(encoding != null);
return encoding.GetCharCount(pBytes + index, count, decoder: null);
}
+ [SecurityCritical]
public unsafe static int GetCharCount(Encoding encoding, byte* bytes, int count)
{
Contract.Assert(encoding != null);
return encoding.GetCharCount(bytes, count, decoder: null);
}
+ [SecuritySafeCritical]
public unsafe static int GetChars(Encoding encoding, byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
{
Contract.Assert(encoding != null);
}
}
+ [SecurityCritical]
public unsafe static int GetChars(Encoding encoding, byte* bytes, int byteCount, char* chars, int charCount)
{
Contract.Assert(encoding != null);
return encoding.GetChars(bytes, byteCount, chars, charCount, decoder: null);
}
+ [SecuritySafeCritical]
public unsafe static string GetString(Encoding encoding, byte[] bytes, int index, int count)
{
Contract.Assert(encoding != null);
// Returns the number of bytes required to encode a range of characters in
// a character array.
- [System.Security.SecuritySafeCritical] // overrides public transparent member
public override int GetByteCount(char[] chars, int index, int count)
{
return EncodingForwarder.GetByteCount(this, chars, index, count);
}
- [System.Security.SecuritySafeCritical] // overrides public transparent member
public override int GetByteCount(String s)
{
return EncodingForwarder.GetByteCount(this, s);
return EncodingForwarder.GetByteCount(this, chars, count);
}
- [System.Security.SecuritySafeCritical] // overrides public transparent member
public override int GetBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// determine the maximum number of bytes that will be produced for a given
// number of characters, regardless of the actual character values.
- [System.Security.SecuritySafeCritical] // overrides public transparent member
public override int GetBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// Returns the number of characters produced by decoding a range of bytes
// in a byte array.
- [System.Security.SecuritySafeCritical] // overrides public transparent member
public override int GetCharCount(byte[] bytes, int index, int count)
{
return EncodingForwarder.GetCharCount(this, bytes, index, count);
return EncodingForwarder.GetCharCount(this, bytes, count);
}
- [System.Security.SecuritySafeCritical] // overrides public transparent member
public override int GetChars(byte[] bytes, int byteIndex, int byteCount,
char[] chars, int charIndex)
{
// Returns a string containing the decoded representation of a range of
// bytes in a byte array.
- [System.Security.SecuritySafeCritical] // overrides public transparent member
public override String GetString(byte[] bytes, int index, int count)
{
return EncodingForwarder.GetString(this, bytes, index, count);
// Returns the number of bytes required to encode a range of characters in
// a character array.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetByteCount(char[] chars, int index, int count)
{
return EncodingForwarder.GetByteCount(this, chars, index, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetByteCount(String s)
{
return EncodingForwarder.GetByteCount(this, s);
return EncodingForwarder.GetByteCount(this, chars, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// determine the maximum number of bytes that will be produced for a given
// number of characters, regardless of the actual character values.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// Returns the number of characters produced by decoding a range of bytes
// in a byte array.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetCharCount(byte[] bytes, int index, int count)
{
return EncodingForwarder.GetCharCount(this, bytes, index, count);
return EncodingForwarder.GetCharCount(this, bytes, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetChars(byte[] bytes, int byteIndex, int byteCount,
char[] chars, int charIndex)
{
// Returns a string containing the decoded representation of a range of
// bytes in a byte array.
- [System.Security.SecuritySafeCritical] // auto-generated
public override String GetString(byte[] bytes, int index, int count)
{
return EncodingForwarder.GetString(this, bytes, index, count);
// Returns the number of bytes required to encode a range of characters in
// a character array.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetByteCount(char[] chars, int index, int count)
{
return EncodingForwarder.GetByteCount(this, chars, index, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
[System.Runtime.InteropServices.ComVisible(false)]
public override int GetByteCount(String s)
{
return EncodingForwarder.GetByteCount(this, chars, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
[System.Runtime.InteropServices.ComVisible(false)]
public override int GetBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
// determine the maximum number of bytes that will be produced for a given
// number of characters, regardless of the actual character values.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// Returns the number of characters produced by decoding a range of bytes
// in a byte array.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetCharCount(byte[] bytes, int index, int count)
{
return EncodingForwarder.GetCharCount(this, bytes, index, count);
return EncodingForwarder.GetCharCount(this, bytes, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetChars(byte[] bytes, int byteIndex, int byteCount,
char[] chars, int charIndex)
{
// Returns a string containing the decoded representation of a range of
// bytes in a byte array.
- [System.Security.SecuritySafeCritical] // auto-generated
[System.Runtime.InteropServices.ComVisible(false)]
public override String GetString(byte[] bytes, int index, int count)
{
// Returns the number of bytes required to encode a range of characters in
// a character array.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetByteCount(char[] chars, int index, int count)
{
return EncodingForwarder.GetByteCount(this, chars, index, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetByteCount(String chars)
{
return EncodingForwarder.GetByteCount(this, chars);
return EncodingForwarder.GetByteCount(this, chars, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// determine the maximum number of bytes that will be produced for a given
// number of characters, regardless of the actual character values.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// Returns the number of characters produced by decoding a range of bytes
// in a byte array.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetCharCount(byte[] bytes, int index, int count)
{
return EncodingForwarder.GetCharCount(this, bytes, index, count);
return EncodingForwarder.GetCharCount(this, bytes, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetChars(byte[] bytes, int byteIndex, int byteCount,
char[] chars, int charIndex)
{
// Returns a string containing the decoded representation of a range of
// bytes in a byte array.
- [System.Security.SecuritySafeCritical] // auto-generated
[System.Runtime.InteropServices.ComVisible(false)]
public override String GetString(byte[] bytes, int index, int count)
{
// Returns the number of bytes required to encode a range of characters in
// a character array.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetByteCount(char[] chars, int index, int count)
{
return EncodingForwarder.GetByteCount(this, chars, index, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetByteCount(String s)
{
return EncodingForwarder.GetByteCount(this, s);
return EncodingForwarder.GetByteCount(this, chars, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// determine the maximum number of bytes that will be produced for a given
// number of characters, regardless of the actual character values.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// Returns the number of characters produced by decoding a range of bytes
// in a byte array.
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetCharCount(byte[] bytes, int index, int count)
{
return EncodingForwarder.GetCharCount(this, bytes, index, count);
return EncodingForwarder.GetCharCount(this, bytes, count);
}
- [System.Security.SecuritySafeCritical] // auto-generated
public override int GetChars(byte[] bytes, int byteIndex, int byteCount,
char[] chars, int charIndex)
{
// Returns a string containing the decoded representation of a range of
// bytes in a byte array.
- [System.Security.SecuritySafeCritical] // auto-generated
[System.Runtime.InteropServices.ComVisible(false)]
public override String GetString(byte[] bytes, int index, int count)
{