<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppleArchive",
  "identifier" : "/documentation/AppleArchive/ArchiveByteStream/init(object:owned:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Apple Archive"
    ],
    "preciseIdentifier" : "s:12AppleArchive0B10ByteStreamC6object5ownedACs13OpaquePointerVSg_Sbtcfc"
  },
  "title" : "init(object:owned:)"
}
-->

# init(object:owned:)

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

```
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.

---

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)