示例#1
0
func NewUuidGeneratorWithNode(node uint64) *UuidGenerator {
	generator := new(UuidGenerator)
	generator.cptr = C.cass_uuid_gen_new_with_node(C.cass_uint64_t(node))
	return generator
}
示例#2
0
func (generator *UuidGenerator) NewUuidFromTime(timestamp uint64) *Uuid {
	uuid := new(Uuid)
	C.cass_uuid_gen_from_time(generator.cptr, C.cass_uint64_t(timestamp), uuid.cptr)
	return uuid
}