MessageBuffer implementation 1