jw
if (thing != null) { dest.writeInt(1) dest.writeInt(thing) } else { dest.writeInt(0) }
val thing = dest.readInt() == 0 ? null : dest.readInt()