Sitecore.Foundation.Assets.Models.Asset.GetDataLength C# (CSharp) Method

GetDataLength() public method

public GetDataLength ( ) : long
return long
    public long GetDataLength()
    {
      var total = 0L;

      if (this.File != null)
      {
        total += this.File.Length;
      }

      if (this.Inline != null)
      {
        total += this.Inline.Length;
      }

      if (this.AddOnceToken != null)
      {
        total += this.AddOnceToken.Length;
      }

      return total;
    }
  }