public static String getString(IoBuffer buffer) { int len = buffer.getInt(); if (len == 0) { return(""); } else { return(encoding.GetString(buffer.get(len))); } }
public static String getString(IoBuffer buffer) { int len = buffer.getInt(); if( len == 0 ) { return ""; }else { return encoding.GetString(buffer.get(len)); } }
public static bool getBoolean(IoBuffer buffer) { byte b = buffer.get(); return b == 0 ? false : true; }
public static bool getBoolean(IoBuffer buffer) { byte b = buffer.get(); return(b == 0 ? false : true); }