digitalmars.D - Canonical/Idiomatic in memory files
- Russel Winder (17/17) May 28 2013 Hi,
- Martin Nowak (3/10) May 28 2013 This is only available for std.stream
- Russel Winder (14/16) May 28 2013 This package has a big red "deprecated" notice, so I didn't look at it.
- Paulo Pinto (7/13) May 29 2013 Actually I am also making heavy use of it, as I am porting to D a Java
- Martin Nowak (2/3) May 29 2013 We want to have a range based replacement, but it's nowhere near in sigh...
- Walter Bright (3/9) May 28 2013 Part of the idea of using ranges is you can switch to a memory buffer in...
Hi, I think I am missing something very obvious=E2=80=A6 For unit tests I want a std.stdio.File object that is backed by an in memory string buffer rather than an actual file on disc, be it temporary or otherwise. I think I am missing where this is documented in the documentation. Or is it actually not available? Thanks. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
May 28 2013
On 05/28/2013 05:04 PM, Russel Winder wrote:Hi, I think I am missing something very obvious… For unit tests I want a std.stdio.File object that is backed by an in memory string buffer rather than an actual file on disc, be it temporary or otherwise. I think I am missing where this is documented in the documentation. Or is it actually not available? Thanks.This is only available for std.stream
May 28 2013
On Tue, 2013-05-28 at 19:51 +0200, Martin Nowak wrote: [=E2=80=A6]This is only available for std.stream=20This package has a big red "deprecated" notice, so I didn't look at it. Is this an indication that I should? Is there a planned replacement? --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
May 28 2013
Am 29.05.2013 06:48, schrieb Russel Winder:On Tue, 2013-05-28 at 19:51 +0200, Martin Nowak wrote: […]Actually I am also making heavy use of it, as I am porting to D a Java based application that uses streams. Relying on std.stream makes the porting easier, but I am also wondering about it. -- PauloThis is only available for std.streamThis package has a big red "deprecated" notice, so I didn't look at it. Is this an indication that I should? Is there a planned replacement?
May 29 2013
On 05/29/2013 06:48 AM, Russel Winder wrote:Is there a planned replacement?We want to have a range based replacement, but it's nowhere near in sight.
May 29 2013
On 5/28/2013 8:04 AM, Russel Winder wrote:Hi, I think I am missing something very obvious… For unit tests I want a std.stdio.File object that is backed by an in memory string buffer rather than an actual file on disc, be it temporary or otherwise. I think I am missing where this is documented in the documentation. Or is it actually not available?Part of the idea of using ranges is you can switch to a memory buffer instead of an actual file.
May 28 2013