pub const kWriteState: c_uint = 2;