Write a string

Property definitions

core $ Writer :: write
	# Write a string
	fun write(s: Text) is abstract
lib/core/stream.nit:531,2--532,31

core $ BytesWriter :: write
	redef fun write(str)
	do
		if closed then return
		str.append_to_bytes bytes
	end
lib/core/stream.nit:642,2--646,4

libevent $ Connection :: write
	# Write a string to the connection
	redef fun write(str)
	do
		if close_requested then return
		native_buffer_event.write(str.to_cstring, str.byte_length)
	end
lib/libevent/libevent.nit:232,2--237,4

core $ FileWriter :: write
	redef fun write(s)
	do
		if last_error != null then return
		if not _is_writable then
			last_error = new IOError("cannot write to non-writable stream")
			return
		end
		s.write_native_to(self)
	end
lib/core/file.nit:221,2--229,4

core $ ProcessWriter :: write
	redef fun write(s) do stream_out.write(s)
lib/core/exec.nit:377,2--42

filter_stream $ StreamDemux :: write
	redef fun write(s: Text)
	do
		for i in _streams
		do
			stream = i
			if stream.is_writable then
				stream.write(s)
			end
		end
	end
lib/filter_stream/filter_stream.nit:111,2--120,4

socket $ TCPStream :: write
	# If socket.end_reached, nothing will happen
	redef fun write(msg)
	do
		if closed then return
		native.write(msg.to_cstring, msg.length)
	end
lib/socket/socket.nit:175,2--180,4

websocket $ WebsocketConnection :: write
	redef fun write(msg) do origin.write_bytes(frame_message(msg))
lib/websocket/websocket.nit:286,2--63