You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

YitIdHelper.h 457 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021
  1. /*
  2. * 版权属于:yitter(yitter@126.com)
  3. * 开源地址:https://gitee.com/yitter/idgenerator
  4. */
  5. #pragma once
  6. #include "idgen/IdGenOptions.h"
  7. #include "idgen/common.h"
  8. TAP_DLLEXPORT
  9. extern void TAP_STDCALL SetIdGenerator(IdGeneratorOptions options);
  10. TAP_DLLEXPORT
  11. extern void TAP_STDCALL SetWorkerId(uint32_t workerId);
  12. TAP_DLLEXPORT
  13. extern uint64_t TAP_STDCALL NextId();
  14. TAP_DLLEXPORT
  15. extern uint64_t TAP_STDCALL TestId();

雪花算法中非常好用的数字ID生成器