Skip to content

Commit

Permalink
Add missing DenseVector method (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaras authored Jul 15, 2024
1 parent 2f62ddf commit b867510
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LightBSON"
uuid = "a4a7f996-b3a6-4de6-b9db-2fa5f350df41"
authors = ["Christian Rorvik <[email protected]>"]
version = "0.2.19"
version = "0.2.20"

[deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Expand Down
4 changes: 3 additions & 1 deletion src/write_buffer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ end

@inline Base.sizeof(buffer::BSONWriteBuffer) = buffer.len

@inline Base.elsize(BSONWriteBuffer) = 1

@inline function Base.getindex(buffer::BSONWriteBuffer, i::Integer)
@boundscheck (i > 0 && i <= buffer.len) || throw(BoundsError(buffer, i))
@inbounds buffer.data[i]
Expand All @@ -43,4 +45,4 @@ end
buffer.len += 1
@inbounds buffer.data[buffer.len] = x
buffer
end
end

2 comments on commit b867510

@ancapdev
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/111100

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.20 -m "<description of version>" b867510a4408042ec38b700c5bf8e7cffa87dc40
git push origin v0.2.20

Please sign in to comment.