Maybe std.outbuffer...<div><br></div><div><div><font face="'courier new', monospace">    auto buffer = new OutBuffer();</font></div><div><font face="'courier new', monospace">    </font></div><div><font face="'courier new', monospace">    int a = 42;</font></div>

<div><font face="'courier new', monospace">    buffer.write(a);</font></div><div><font face="'courier new', monospace">    </font></div><div><font face="'courier new', monospace">    byte[] bytes = cast(byte[]) buffer.toBytes();</font></div>

<div><font face="'courier new', monospace">    ubyte[] ubytes = buffer.toBytes();</font></div><div><br></div><div><br></div>Pedro Lacerda<br><br>
<br><br><div class="gmail_quote">2012/2/7 Mafi <span dir="ltr"><<a href="mailto:mafi@example.org">mafi@example.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
does anybody know how to bring <a href="http://std.conv.to" target="_blank">std.conv.to</a> or something similar to output into an output range?<br>
<br>
int a = 42;<br>
char[25] buffer;<br>
to!typeof(buffer[])(a, buffer[]);<br>
<br>
I want to send these texts throw sockets. Therefore I'd like to reuse the buffer.<span class="HOEnZb"><font color="#888888"><br>
<br>
Mafi<br>
</font></span></blockquote></div><br></div>