public override object Read(IReadContext context) { var value = ((context.ReadByte() & unchecked (0xff)) << 8) + (context.ReadByte () & unchecked (0xff)); return((short)value); }
public override object Read(IReadContext context) { var b1 = context.ReadByte(); var b2 = context.ReadByte(); var charValue = (char) ((b1 & unchecked(0xff)) | ((b2 & unchecked(0xff)) << 8)); return charValue; }
public override object Read(IReadContext context) { var b1 = context.ReadByte(); var b2 = context.ReadByte(); var charValue = (char)((b1 & unchecked (0xff)) | ((b2 & unchecked (0xff)) << 8)); return(charValue); }
public override object Read(IReadContext context) { byte ret = context.ReadByte(); if (ret == True) { return true; } if (ret == False) { return false; } return null; }
public override object Read(IReadContext context) { byte ret = context.ReadByte(); if (ret == True) { return(true); } if (ret == False) { return(false); } return(null); }
public override object Read(IReadContext context) { var value = ((context.ReadByte() & unchecked(0xff)) << 8) + (context.ReadByte () & unchecked(0xff)); return (short) value; }
public override object Read(IReadContext context) { return (sbyte)(context.ReadByte() - 128); }
public override object Read(IReadContext context) { var byteValue = context.ReadByte(); return byteValue; }
public override object Read(IReadContext context) { return((sbyte)(context.ReadByte() - 128)); }
public override object Read(IReadContext context) { var byteValue = context.ReadByte(); return(byteValue); }