struct
UnsafeMutableBufferPointer
<
T
>
Inheritance |
CollectionType, DebugPrintable, MutableCollectionType, SequenceType, _CollectionType, _SequenceType, _Sequence_Type
View Protocol Hierarchy →
|
---|---|
Associated Types |
Type alias inferred.
Type alias inferred.
Type alias inferred.
Type alias inferred. |
Import |
|
Initializers
Construct an UnsafeMutablePointer over the count
contiguous
T
instances beginning at start
.
Declaration
init
(
start
:
UnsafeMutablePointer
<
T
>
,
count
:
Int
)
Instance Variables
A pointer to the first element of the buffer
Declaration
var
baseAddress
:
UnsafeMutablePointer
<
T
>
{
get
}
A textual representation of self
, suitable for debugging.
Declaration
var
debugDescription
:
String
{
get
}
The "past the end" position; always identical to count
.
endIndex
is not a valid argument to subscript
, and is always
reachable from startIndex
by zero or more applications of
successor()
.
Declaration
var
endIndex
:
Int
{
get
}
Always zero, which is the index of the first element in a non-empty buffer.
Declaration
var
startIndex
:
Int
{
get
}
Subscripts
Declaration
subscript
(
i
:
Int
) -
>
T
{
get
nonmutating
set
}
Instance Methods
Return a generator over the elements of this sequence.
Complexity: O(1)
Declaration
func
generate
() -
>
UnsafeBufferPointerGenerator
<
T
>
A non-owning pointer to buffer of mutable
T
s stored contiguously in memory, presenting aCollection
interface to the underlying elements.