Class FileByteTarget
Representation of a file byte target.
Inherited Members
Namespace: Dicom.IO
Assembly: cs.temp.dll.dll
Syntax
public sealed class FileByteTarget : IDisposable, IByteTarget
Constructors
FileByteTarget(IFileReference)
Initializes an instance of FileByteTarget.
Declaration
public FileByteTarget(IFileReference file)
Parameters
Type | Name | Description |
---|---|---|
IFileReference | file |
Properties
Endian
Gets or sets the endianness of the byte target.
Declaration
public Endian Endian { get; set; }
Property Value
Type | Description |
---|---|
Endian |
Position
Gets the current write position.
Declaration
public long Position { get; }
Property Value
Type | Description |
---|---|
Int64 |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Write(Byte)
Write one Byte to target.
Declaration
public void Write(byte v)
Parameters
Type | Name | Description |
---|---|---|
Byte | v | Byte to write. |
Write(Byte[], UInt32, UInt32)
Write array of Bytes to target.
Declaration
public void Write(byte[] buffer, uint offset, uint count)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | Array of Bytes to write. |
UInt32 | offset | Index of first position in |
UInt32 | count | Number of bytes to write to byte target. |
Write(Double)
Write one Double to target.
Declaration
public void Write(double v)
Parameters
Type | Name | Description |
---|---|---|
Double | v | Double to write. |
Write(Int16)
Write one Int16 to target.
Declaration
public void Write(short v)
Parameters
Type | Name | Description |
---|---|---|
Int16 | v | Int16 to write. |
Write(Int32)
Write one Int32 to target.
Declaration
public void Write(int v)
Parameters
Type | Name | Description |
---|---|---|
Int32 | v | Int32 to write. |
Write(Int64)
Write one Int64 to target.
Declaration
public void Write(long v)
Parameters
Type | Name | Description |
---|---|---|
Int64 | v | Int64 to write. |
Write(Single)
Write one Single to target.
Declaration
public void Write(float v)
Parameters
Type | Name | Description |
---|---|---|
Single | v | Single to write. |
Write(UInt16)
Write one UInt16 to target.
Declaration
public void Write(ushort v)
Parameters
Type | Name | Description |
---|---|---|
UInt16 | v | UInt16 to write. |
Write(UInt32)
Write one UInt32 to target.
Declaration
public void Write(uint v)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | v | UInt32 to write. |
Write(UInt64)
Write one UInt64 to target.
Declaration
public void Write(ulong v)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | v | UInt64 to write. |
WriteAsync(Byte[], UInt32, UInt32)
Asynchronously write array of Bytes to target.
Declaration
public Task WriteAsync(byte[] buffer, uint offset, uint count)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | Array of Bytes to write. |
UInt32 | offset | Index of first position in |
UInt32 | count | Number of bytes to write to byte target. |
Returns
Type | Description |
---|---|
Task | Avaitable Task. |