示例#1
0
 set(SqlVarByte data)
 {
     if (data == null || data.isNull())
     {
         setNull();
     }
     else
     {
         clear();
         put(data.value, 0, data.length);
     }
     return;
 }         // set
示例#2
0
 set(SqlVarByte data)
 {
     if (data.isNull())
     {
         setNull();
     }
     else
     {
         /*
         ** The binary data is stored in a byte array.  A simple
         ** binary stream will produce the desired output.
         */
         setStream(getBinary(data.value, 0, data.length));
     }
     return;
 }         // set
示例#3
0
 getString()
 {
     byte[] ba = strm2array(getBinary(), -1);
     return(SqlVarByte.bin2str(ba, 0, ba.Length));
 }         // getString