bug fix, resize condition reverse
change type of buffer to double*
defforeign integer return value must be plus ?