public virtual byte[] Encode(object obj)
 {
     return(ByteUtil.RenderBoolean((bool)obj));
 }
Exemple #2
0
 public virtual object Decode(byte[] value)
 {
     return(ByteUtil.RetrieveUnsignedByte(value, 0));
 }
 public virtual object Decode(byte[] value)
 {
     return(ByteUtil.RetrieveBoolean(value, 0));
 }
Exemple #4
0
 public virtual byte[] Encode(object obj)
 {
     byte[] retval = new byte[1];
     retval[0] = ByteUtil.RenderSignedByte((sbyte)obj);
     return(retval);
 }