hunt-net ~master (2022-02-18T10:07:33Z)
Home
Dub
Repo
ReferenceCountUpdater.setRefCnt
hunt
net
buffer
ReferenceCountUpdater
ReferenceCountUpdater
An unsafe operation that sets the reference count directly
class
ReferenceCountUpdater
(T, string fieldName)
final
void
setRefCnt
(
T
instance
,
int
refCnt
)
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
An unsafe operation that sets the reference count directly