---
title: "init(object:owned:)"
framework: applearchive
role: symbol
role_heading: Initializer
path: "applearchive/archivebytestream/init(object:owned:)"
---

# init(object:owned:)

Returns a new archive byte stream from the specified traits and entry message processing callback.

## Declaration

```swift
override init(object aaObject: _AAOptionalObjectWrapper<_AAByteStreamTraits>.AAType?, owned aaObjectOwned: Bool)
```

## Parameters

- `aaObject`: An object wrapper that contains the blob traits.
- `aaObjectOwned`: A Boolean value that specifies whether the archive stream owns the traits object.
