-
Notifications
You must be signed in to change notification settings - Fork 0
83f133cb 41f0 0584 8a18 b0eac56d4b10
Arthur Frederico Neves edited this page Jul 19, 2016
·
3 revisions
Copies a sequence of bytes from the pack and advances the current readPosition by the number of bytes copied.
Namespace: NETLIB
Assembly: NETLIB (in NETLIB.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public virtual void Read(
byte[] buffer,
int offset,
int count
)
VB
Public Overridable Sub Read (
buffer As Byte(),
offset As Integer,
count As Integer
)
C++
public:
virtual void Read(
array<unsigned char>^ buffer,
int offset,
int count
)
F#
abstract Read :
buffer : byte[] *
offset : int *
count : int -> unit
override Read :
buffer : byte[] *
offset : int *
count : int -> unit
- buffer
- Type: System.Byte[]
An array of bytes. This method copies count bytes from pack to the buffer. - offset
- Type: System.Int32
The zero-based byte offset in buffer at which to begin copying bytes to the pack. - count
- Type: System.Int32
The number of bytes to be copied.
Exception | Condition |
---|---|
IndexOutOfRangeException | Throws when readPosition plus count is larger than the inner buffer length. |
ArgumentOutOfRangeException | Throws when the offset is larger or equal than the buffer length and when offset plus count is larger than the buffer size. |
A Sandcastle Documented Class Library
Send comments on this topic to [](mailto:?Subject=A Sandcastle Documented Class Library)
-
NETLIB Namespace
-
BasePack Class
- BasePack Constructor
- BasePack Properties
-
BasePack Methods
- BasePack.DeepCopy Method
- BasePack.GetBool Method
- BasePack.GetByte Method
- BasePack.GetChar Method
- BasePack.GetDouble Method
- BasePack.GetFloat Method
- BasePack.GetInt Method
- BasePack.GetPackable(CustomType) Method
- BasePack.GetString Method
- BasePack.PutBool Method
- BasePack.PutByte Method
- BasePack.PutChar Method
- BasePack.PutDouble Method
- BasePack.PutFloat Method
- BasePack.PutInt Method
- BasePack.PutPackable(CustomType) Method
- BasePack.PutString Method
- BasePack.Read Method
- BasePack.Write Method
- BasePack Type Conversions
- BasePack Fields
- ConnectionClosedEventHandler Delegate
- ConnectionClosedEventHandler(Type) Delegate
- ConnectionClosedException Class
-
Consumer(TPack) Class
- Consumer(TPack) Constructor
- Consumer(TPack) Properties
-
Consumer(TPack) Methods
- Consumer(TPack).CloseConnection Method
- Consumer(TPack).Dispose Method
- Consumer(TPack).EndConsume Method
- Consumer(TPack).EndPublishConsume Method
- Consumer(TPack).Finalize Method
- Consumer(TPack).OnReceivedPackCall Method
- Consumer(TPack).PackFactory Method
- Consumer(TPack).SendPack Method
- Consumer(TPack).Start Method
- Consumer(TPack).StartConsume Method
- Consumer(TPack) Events
- ConsumerRunningException Class
- IOBasePackHandler Class
- IOPackHandler(TPack) Class
- IPackable Interface
- ListenerRunnigException Class
- Protocol(TPack) Class
-
Publisher Class
- Publisher Constructor
- Publisher Properties
- Publisher Methods
- Publisher Events
- Publisher Fields
- PublisherRunnigException Class
- ThrowPackEventHandler(TPack) Delegate
-
BasePack Class
- NETLIB.TCP Namespace
- NETLIB.TCP.Server Namespace