<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaExtension",
  "identifier" : "/documentation/MediaExtension/MEByteSource/availableLength(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MediaExtension"
    ],
    "preciseIdentifier" : "c:objc(cs)MEByteSource(im)availableLengthAtOffset:"
  },
  "title" : "availableLength(at:)"
}
-->

# availableLength(at:)

Gets the number of available bytes from the offset within the byte source.

```
func availableLength(at offset: Int64) -> Int64
```

## Parameters

`offset`

The offset in bytes from the beginning of the byte source.

## Return Value

An integer that specifies the number of available bytes.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)