Interface IByteTarget
- Namespace
- FellowOakDicom.IO
- Assembly
- fo-dicom.core.dll
Interface representing a byte target for write operations.
public interface IByteTarget
- Extension Methods
Properties
Endian
Gets or sets the endianness of the byte target.
Endian Endian { get; set; }
Property Value
Position
Gets the current write position.
long Position { get; }
Property Value
Methods
AsWritableStream()
Exposes the current byte target as a writable stream Do not dispose of this stream! It will be disposed when the byte target is disposed
Stream AsWritableStream()
Returns
- Stream
A stream that, when written to, will write to the underlying byte target
Write(byte)
Write one byte to target.
void Write(byte v)
Parameters
Write(byte[], uint, uint)
Write array of bytes to target.
void Write(byte[] buffer, uint offset, uint count)
Parameters
buffer
byte[]Array of bytes to write.
offset
uintIndex of first position in
buffer
to write to byte target.count
uintNumber of bytes to write to byte target.
Write(double)
Write one double to target.
void Write(double v)
Parameters
Write(short)
Write one short to target.
void Write(short v)
Parameters
Write(int)
Write one int to target.
void Write(int v)
Parameters
Write(long)
Write one long to target.
void Write(long v)
Parameters
Write(float)
Write one float to target.
void Write(float v)
Parameters
Write(ushort)
Write one ushort to target.
void Write(ushort v)
Parameters
Write(uint)
Write one uint to target.
void Write(uint v)
Parameters
Write(ulong)
Write one ulong to target.
void Write(ulong v)
Parameters
WriteAsync(byte[], uint, uint)
Asynchronously write array of bytes to target.
Task WriteAsync(byte[] buffer, uint offset, uint count)
Parameters
buffer
byte[]Array of bytes to write.
offset
uintIndex of first position in
buffer
to write to byte target.count
uintNumber of bytes to write to byte target.