static public int GetEncoder(IntPtr l) { try { System.Text.UTF8Encoding self = (System.Text.UTF8Encoding)checkSelf(l); var ret = self.GetEncoder(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
private static StringBuilder namebuf = new StringBuilder(256); // this is also a lock target static NetCDF() { Encoding encoding = new UTF8Encoding(false); utfEncoder = encoding.GetEncoder(); utfDecoder = encoding.GetDecoder(); }
public void PosTest1() { UTF8Encoding utf8 = new UTF8Encoding(); Encoder encoder = utf8.GetEncoder(); }