PeerCastStation.FLV.FLVFileParser.FLVTag.ReadTagBodyAsync C# (CSharp) Method

ReadTagBodyAsync() public method

public ReadTagBodyAsync ( Stream stream, CancellationToken cancel_token ) : Task
stream Stream
cancel_token System.Threading.CancellationToken
return Task
      public async Task<bool> ReadTagBodyAsync(Stream stream, CancellationToken cancel_token)
      {
        this.Body   = await stream.ReadBytesAsync(this.DataSize, cancel_token);
        this.Footer = await stream.ReadBytesAsync(4, cancel_token);
        return IsValidFooter;
      }