     fileprivate init(
         stream: OutputStream,
         configuration: Configuration,
-        writeScalar: @escaping ((Unicode.Scalar) -> Void)) {
+        writeScalar: @escaping ((UnicodeScalar) -> Void)) {
         
         self.stream = stream
         self.configuration = configuration

    
    public let stream: OutputStream
    public let configuration: Configuration
    fileprivate let writeScalar: ((Unicode.Scalar) -> Void)

    fileprivate var isFirstRecord: Bool = true
    fileprivate var isFirstField: Bool = true

        configuration: Configuration = Configuration()
        ) where T.CodeUnit == UInt16 {
        
        self.init(stream: stream, configuration: configuration) { (scalar: UnicodeScalar) in
            codecType.encode(scalar) { (code: UInt16) in
                var code = (endian == .big) ? code.bigEndian : code.littleEndian
                let count = withUnsafeBytes(of: &code) { (buffer) -> Int in
