Property definitions

core $ Writer :: defaultinit
# A `Stream` that can be written to
abstract class Writer
	super Stream

	# Write bytes from `s`
	fun write_bytes(s: Bytes) do write_bytes_from_cstring(s.items, s.length)

	# Write `len` bytes from `ns`
	fun write_bytes_from_cstring(ns: CString, len: Int) is abstract

	# Write a string
	fun write(s: Text) is abstract

	# Write a single byte
	fun write_byte(value: Int) is abstract

	# Write a single char
	fun write_char(c: Char) do
		var ln = codec.add_char_to(c, write_buffer)
		write_bytes_from_cstring(write_buffer, ln)
	end

	# Can the stream be used to write
	fun is_writable: Bool is abstract
end
lib/core/stream.nit:521,1--545,3