use native buffer methods for ints when available, fields object optimization