public override byte EncodingByte() { if (_encoding is BuiltInStringEncoding) { return(BuiltInStringEncoding.EncodingByteForEncoding(_encoding)); } return(0); }
public static LatinStringIO StringIoForEncoding(byte encodingByte, IStringEncoding encoding) { if (encodingByte < 0 || encodingByte > AllEncodings.Length) { throw new ArgumentException(); } if (encodingByte == 0) { if (encoding is BuiltInStringEncoding) { Sharpen.Runtime.Out.WriteLine("Warning! Database was created with a custom string encoding but no custom string encoding is configured for this session." ); } return(new DelegatingStringIO(encoding)); } BuiltInStringEncoding builtInEncoding = AllEncodings[encodingByte]; return(builtInEncoding.CreateStringIo(encoding)); }
public virtual byte EncodingByte() { return(BuiltInStringEncoding.EncodingByteForEncoding(new LatinStringEncoding())); }
public override byte EncodingByte() { return(BuiltInStringEncoding.EncodingByteForEncoding(new UnicodeStringEncoding())); }