# Delegate StreamInterceptor (1.73.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.73.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.StreamInterceptor)
- [1.69.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.69.0/Google.Apis.Http.StreamInterceptor)
- [1.68.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.68.0/Google.Apis.Http.StreamInterceptor)
- [1.60.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.60.0/Google.Apis.Http.StreamInterceptor)
- [1.59.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.59.0/Google.Apis.Http.StreamInterceptor)
- [1.55.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.55.0/Google.Apis.Http.StreamInterceptor)
- [1.50.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.50.0/Google.Apis.Http.StreamInterceptor)

    public delegate void StreamInterceptor(byte[] buffer, int offset, int count)

A delegate used to intercept stream data without modifying it.
The parameters should always be validated before the delegate is called,
so the delegate itself does not need to validate them again.

## Namespace

[Google.Apis.Http](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http)

## Assembly

Google.Apis.Core.dll

| ## Parameters ||
|---|---|
| **Name** | **Description** |
| `buffer` | `System.Byte` The buffer containing the data. |
| `offset` | `https://learn.microsoft.com/dotnet/api/system.int32` The offset into the buffer. |
| `count` | `https://learn.microsoft.com/dotnet/api/system.int32` The number of bytes being read/written. |

## Extension Method

[Utilities.ThrowIfNull\<T\>(T, string)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.Utilities#Google_Apis_Util_Utilities_ThrowIfNull__1___0_System_String_)