OSCCore
OSCCore copied to clipboard
Utilize NIO ByteBuffer in serialization
NIO provides a useful type for serializing stuff into byte stream, ByteBuffer.
Actual implementation simply concatenates output into [UInt8]
. ByteBuffer
covers this function way better.
Affected types
-
OSCConvertible
protocol that defines serialization, particularly-
var oscValue: [Byte]? { get }
- provides serialized value as bytes array -
init?(data: [Byte])
andinit?(data: ArraySlice<Byte>)
constructors. They make up types from bytes stream
-
-
conversion module is where serialization stuff takes place
-
extract.swift
the entry point of decoding OSC packets. - Constructors of
OSCMessage
andOSCBundle
where all the decoding happens.
-
-
Tests/OSCCoreTests/ValueConversionTests
test suite.
This ticket also affects #16