}
LongBuffer types = getInfoLongs(CL_DEVICE_PARTITION_TYPES_EXT);
List<Partition> list = new ArrayList<Partition>();
while(types.hasRemaining()) {
Partition type = Partition.valueOf((int)types.get());
if(type != null) {
list.add(type);
}
}
return EnumSet.copyOf(list);