﻿class System.IO.MemoryStream : Stream
	java service MemoryStream
	js service MemoryStream
	python service MemoryStream
	php resource
	rust service MemoryStream

.ctor()
	java =
	js =
	python =
	php fopen("php://memory", "w+b")
	rust MemoryStream::new()

.ctor(byte[])
	java =
	js =
	python =
	php Utils::CreateMemoryStream({0})
	rust MemoryStream::from_list({0&})

.ctor(int)
	java =
	python =
	js =
	php fopen("php://memory", "w+b")
	rust MemoryStream::with_capacity({0})

.ctor(byte[], bool)
	java new {*}({0})
	js new {*}({0})
	python {*}({0})
	php Utils::CreateMemoryStream({0})
	rust MemoryStream::from_list({0&})

.ctor(byte[], int, int)
	java new {*}({0}, {1}, {2})
	python {*}({0}[{1} : ({1} + {2})])
	js new {*}({0}, {1}, {2})

.ctor(byte[], int, int, bool)
	java new {*}({0}, {1}, {2})
	python {*}({0}[{1} : ({1} + {2})])
	js new {*}({0}, {1}, {2})

method void WriteTo(Stream) modify throws IOException
	java =writeTo
	python =writeto
	js =writeTo
	rust {!}.write_to({0&mut})

method byte[] ToArray()  modify
	java =toByteArray
	js =toByteArray
	python =toarray 
	php Utils::GetArrayStream({!})
	rust =to_list


