     return String( utf16CodeUnits:string_buffer, count:count )
   }
 
-  func setString( name:String, value:String )->PlasmacoreMessage
-  {
-    writeString( name )
-    entries[ name ] = position
-    writeIntX( DataType.STRING )
-    writeString( value )
-    return self
-  }
-
-  func setInt32( name:String, value:Int )->PlasmacoreMessage
-  {
-    writeString( name )
-    entries[ name ] = position
-    writeIntX( DataType.INT32 )
-    writeIntX( value )
-    return self
-  }
-
   private func writeByte( value:Int )
   {
-    if (position == data.count)
+    if (position++ == data.count)
     {
       data.append( UInt8(value) )
     }
     else
     {
-      data[ position++ ] = UInt8( value )
+      data[ position-1 ] = UInt8( value )
     }
   }
 

    }
  }

  func readString()->String
  {
    string_buffer.removeAll( keepCapacity:true )

    writeByte( value )
  }

  private func writeInt64X( value:Int64 )
  {
    writeIntX( Int(value>>32) )
    writeIntX( Int(value) )
  }

  private func writeIntX( value:Int )
  {
    if (value >= -64 && value <= 127)
