-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
13 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,4 @@ | ||
# Modified from the file automatically generated by ProtoBuf.jl | ||
# See https://github.com/pszufe/OpenStreetMapX.jl/pull/52/ | ||
module OSMPBF | ||
const _ProtoBuf_Top_ = @static isdefined(parentmodule(@__MODULE__), :_ProtoBuf_Top_) ? (parentmodule(@__MODULE__))._ProtoBuf_Top_ : parentmodule(@__MODULE__) | ||
|
||
using ProtoBuf | ||
abstract type SimpleProtoType <: ProtoType end | ||
set_defaults!(::SimpleProtoType) = nothing | ||
function ProtoBuf.clear(obj::SimpleProtoType) | ||
# FIXME how does it play with GC ? | ||
Base.unsafe_securezero!(pointer_from_objref(obj), sizeof(typeof(obj))) | ||
set_defaults!(obj) | ||
return | ||
end | ||
Base.hasproperty(obj::SimpleProtoType, field::Symbol) = isdefined(obj, field) | ||
Base.setproperty!(obj::SimpleProtoType, field::Symbol, value) = setfield!(obj, field, value) | ||
ProtoBuf.setdefaultproperties!(::SimpleProtoType, ::ProtoMeta) = nothing | ||
|
||
include("fileformat_pb.jl") | ||
include("osmformat_pb.jl") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters