hunt-net ~master (2022-02-18T10:07:33Z)
Home
Dub
Repo
ReferenceCountUpdater.resetRefCnt
hunt
net
buffer
ReferenceCountUpdater
ReferenceCountUpdater
Resets the reference count to 1
class
ReferenceCountUpdater
(T, string fieldName)
final
void
resetRefCnt
(
T
instance
)
if
(
is
(
T
:
ReferenceCounted
) &&
(
is
(
typeof
(__traits(
getMember
,
T
,
fieldName
)) ==
shared
(
int
))
)
)
Meta
Source
See Implementation
hunt
net
buffer
ReferenceCountUpdater
ReferenceCountUpdater
constructors
this
functions
initialValue
isLiveNonVolatile
refCnt
release
resetRefCnt
retain
setRefCnt
updater
Resets the reference count to 1