1-Wire API for .NET Version 4.00
|
Generic IO routines. More...
Static Public Member Functions | |
static final synchronized void | writeBytes (String delim, byte[] b, int offset, int cnt) |
Writes a byte[] to the specified output stream. | |
static final synchronized void | writeBytes (byte[] b) |
Writes a byte[] to the specified output stream. |
Generic IO routines.
Supports printing and reading arrays of bytes. Also, using the setReader and setWriter methods, the source of the bytes can come from any stream as well as the destination for written bytes. All routines are static and final and handle all exceptional cases by returning a default value.
static final synchronized void writeBytes | ( | String | delim, |
byte[] | b, | ||
int | offset, | ||
int | cnt | ||
) | [static] |
Writes a byte[]
to the specified output stream.
This method writes a combined hex and ascii representation where each line has (at most) 16 bytes of data in hex followed by three spaces and the ascii representation of those bytes. To write out just the Hex representation, use writeBytesHex(byte[],int,int)
.
b | the byte array to print out. |
offset | the starting location to begin printing |
cnt | the number of bytes to print. |
static final synchronized void writeBytes | ( | byte[] | b | ) | [static] |
Writes a byte[]
to the specified output stream.
This method writes a combined hex and ascii representation where each line has (at most) 16 bytes of data in hex followed by three spaces and the ascii representation of those bytes. To write out just the Hex representation, use writeBytesHex(byte[],int,int)
.
b | the byte array to print out. |