Swap order of buffer and size for API consistency.

--BRJ