library State {

    //-------------------------------------------------------------------------
    // structs
    //-------------------------------------------------------------------------

    struct Data {
        uint16  _locked;
        uint240 _unused;
    }

    //-------------------------------------------------------------------------
    // interface
    //-------------------------------------------------------------------------

    function setLocked(Data storage data, uint256 locked)
        internal
    {
        data._locked = uint16(locked);
    }

}
/**
 * @dev Handle contract state efficiently as possbile.
 */
function setLocked(Data storage data, uint256 locked)
        internal
    {
        data._locked = uint16(locked);
    }
//-------------------------------------------------------------------------
// interface
//-------------------------------------------------------------------------