# `GSEncodeArray`

*Function*

## Declaration

```swift
func GSEncodeArray(_ array: [Any]!, _ data: CFMutableData!, _ escape: Bool, _ format: GSFormatVersion, _ error: NSErrorPointer) -> Bool
```

```objc
BOOL GSEncodeArray(NSArray *array, CFMutableDataRef data, BOOL escape, GSFormatVersion format, NSError **error);
```

```python
GSEncodeArray(array: list, data: CFMutableDataRef, escape: bool, format: GSFormatVersion) -> tuple[bool, NSError]
```

## See Also

- [`nullTerminatedASCIIDataWithString`](/Core/GlyphsCore/nullTerminatedASCIIDataWithString)
- [`nullTerminatedASCIIDataWithPropertyList`](/Core/GlyphsCore/nullTerminatedASCIIDataWithPropertyList)
- [`dataWithPropertyList`](/Core/GlyphsCore/dataWithPropertyList)
- [`stringWithPropertyList`](/Core/GlyphsCore/stringWithPropertyList)
- [`stringWithPropertyListNoEscape`](/Core/GlyphsCore/stringWithPropertyListNoEscape)
- [`writePropertyListToFile`](/Core/GlyphsCore/writePropertyListToFile)
- [`writePropertyListToFileNoEscape`](/Core/GlyphsCore/writePropertyListToFileNoEscape)
- [`GSEncodeString`](/Core/GlyphsCore/GSEncodeString)
- [`GSEncodePoint`](/Core/GlyphsCore/GSEncodePoint)
- [`GSEncodeFloat`](/Core/GlyphsCore/GSEncodeFloat)
- [`GSEncodeColor`](/Core/GlyphsCore/GSEncodeColor)
- [`GSFlattenDictionary`](/Core/GlyphsCore/GSFlattenDictionary)
- [`GSFlattenArray`](/Core/GlyphsCore/GSFlattenArray)

