public static int ToInt32(byte[] bytes) { var zigzag = ToTarget(bytes, 32); return (int)DecodeZigZag(zigzag); }