Skip to content

Commit

Permalink
Merge pull request #44 from agerlach/develop
Browse files Browse the repository at this point in the history
Add Julia v1.11 Support
  • Loading branch information
VVCAS-Sean authored Nov 13, 2024
2 parents 653c564 + fb5da5e commit 987bace
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/templates/julia/LMCPFactory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const TEXT_CREATION_REGISTRY = Dict{Tuple{String, String}, DataType}()

const LARGE_ARRAY_REGISTRY = Set{Tuple{DataType, Symbol}}()

function calculate_checksum(bytes::Vector{UInt8})
function calculate_checksum(bytes::AbstractVector{UInt8})
checksum::UInt64 = 0
for byte in bytes
checksum += byte
Expand All @@ -44,7 +44,7 @@ function pack_message(o::AbstractLmcpMessage)
return buffer.data[1:buffer.size]
end

function validate(bytes::Vector{UInt8})
function validate(bytes::AbstractVector{UInt8})
#retrieves the checksum value in BIG_ENDIAN order
cs::UInt64 = 0
len = length(bytes)
Expand All @@ -71,7 +71,7 @@ function unpack_message(buffer::IOBuffer)
return read(messageBuffer, AbstractLmcpMessage)
end

function unpack_message(bytes::Vector{UInt8})
function unpack_message(bytes::AbstractVector{UInt8})
buffer = IOBuffer(bytes)
return unpack_message(buffer)
end
Expand All @@ -81,7 +81,7 @@ function unpack_message(str::String)
return unpack_message(buffer)
end

function unpack_messages(bytes::Vector{UInt8})
function unpack_messages(bytes::AbstractVector{UInt8})
buffer = IOBuffer(bytes)
messages = Vector{LmcpBaseInterface}()
while bytesavailable(buffer) > 0
Expand Down

0 comments on commit 987bace

Please sign in to comment.