Use int64 for buffer sizes