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.

README.md 499 B

4 years ago
4 years ago
12345678910111213141516171819202122232425
  1. # idgenerator
  2. ## FFI
  3. Pytonnode.jsPHP ȿͨ FFI ʽö̬ ID
  4. ͬϵͳòͬĶ̬⡣
  5. ## ӿڷ˵
  6. 1**ȫ** ʼӦóʱִһΣ
  7. ```
  8. // ò
  9. // workerId
  10. // workerIdBitLengthӰ workerIdֵһ6ֵ֧ WorkerId ֵΪ2^workerIdBitLength-1
  11. // seqBitLengthһֻҪ6.
  12. extern "C" void SetOptions(int workerId, int workerIdBitLength, int seqBitLength)
  13. ```
  14. 2ID
  15. ```
  16. // ID
  17. extern "C" long NextId()
  18. ```