Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BeginEndReadAsync()

Task< int > System.IO.Stream.BeginEndReadAsync ( byte[] buffer,
int offset,
int count )
inlineprivateinherited

Definition at line 799 of file Stream.cs.

800 {
802 {
803 return BeginReadInternal(buffer, offset, count, null, null, serializeAsynchronously: true, apm: false);
804 }
805 return TaskFactory<int>.FromAsyncTrim(this, new ReadWriteParameters
806 {
807 Buffer = buffer,
808 Offset = offset,
809 Count = count
810 }, (Stream stream, ReadWriteParameters args, AsyncCallback callback, object state) => stream.BeginRead(args.Buffer, args.Offset, args.Count, callback, state), (Stream stream, IAsyncResult asyncResult) => stream.EndRead(asyncResult));
811 }
bool HasOverriddenBeginEndRead()
Task< int > BeginReadInternal(byte[] buffer, int offset, int count, AsyncCallback callback, object state, bool serializeAsynchronously, bool apm)
Definition Stream.cs:693

References System.asyncResult, System.IO.Stream.BeginReadInternal(), System.buffer, System.count, System.IO.Stream.HasOverriddenBeginEndRead(), System.offset, System.state, and System.stream.

Referenced by System.IO.Stream.ReadAsync().