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