refactor CodecPrintWriter
started working on codecOut
Fix codecOut implementation
Fix bug in SCB buffer allocation when encoding changes
- reduces memory consumption