Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changes between Version 1 and Version 2 of tango.io.stream.DataStream.DataInput

Show
Ignore:
Author:
elite01 (IP: 88.71.40.234)
Timestamp:
06/27/08 01:44:50 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • tango.io.stream.DataStream.DataInput

    v1 v2  
    1 '''[http://www.dsource.org/projects/tango/docs/current/tango.io.stream.DataStream.html DataStream]''' can read binary data from any [wiki:tango.io.model.IConduit#InputStream InputStream]. 
    2 = Supported types = 
    3 Following types are supported by DataStream: 
    4 ||'''D type'''||'''!DataInput method'''||'''!DataOutput method'''|| 
    5 ||`bool`||`getBool`||`putBool`|| 
    6 ||`byte`||`getByte`||`putByte`|| 
    7 ||`short`||`getShort`||`putShort`|| 
    8 ||`int`||`getInt`||`putInt`|| 
    9 ||`long`||`getLong`||`putLong`|| 
    10 ||`float`||`getFloat`||`putFloat`|| 
    11 ||`double`||`getDouble`||`putDouble`|| 
    12 ||`void[]`||`get`||put|| 
    13 Using a cast, there's also support for `ubyte`, `ushort`, `uint`, `ulong`, `char` (`byte`), `wchar` (`short`), `dchar` (`int`) and arrays of those. 
    14 = Byte order = 
    15 Unless otherwise specified, output is written in host byte order and input is assumed to be in host byte order. To reverse the byte order, use the constructor with the flip parameter. To always read/write one specific byte order, the host byte order must be determined and flip must be set accordingly. 
     1See [wiki:tango.io.stream.DataStream DataStream].