---
title: "advanced(by:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/data/advanced(by:)"
---

# advanced(by:)

Returns a new data buffer created by removing the given number of bytes from the front of the original buffer.

## Declaration

```swift
func advanced(by amount: Int) -> Data
```

## Parameters

- `amount`: The number of bytes to strip from the input data buffer. The value must be less than the original data buffer’s length.

## Return Value

Return Value A newly created data buffer that is shorter by the given amount than the original.
