Use macros; typedef CharBuffer StrBuf;

1. StrBuf is now just a CharBuffer provided by stream_buffer.h
2. Replace multiple functions with faster MACROs

Note: this changes field names in StrBuf objects