Vector.asm

This file defines the library for VECTOR data types and algorithms thereof.

See Also

Authors

  • Neil G.  Dickson
Summary
Vector.asmThis file defines the library for VECTOR data types and algorithms thereof.
newFunctions for allocating a new VECTOR
Functions
Vector8_newAllocates a new VECTOR of bytes
Vector16_newAllocates a new VECTOR of words
Vector32_newAllocates a new VECTOR of dwords
Vector64_newAllocates a new VECTOR of qwords
Vector128_newAllocates a new VECTOR of dqwords
deleteFunctions for deallocating a VECTOR
Functions
Vector_deleteDeallocates a VECTOR
addFunctions for adding to any point within a VECTOR
Functions
Vector8_addAdds a byte to a specified index of a VECTOR
Vector8Fixed_addAdds a byte to a specified index of a fixed-capacity VECTOR
Vector16_addAdds a word to a specified index of a VECTOR
Vector16Fixed_addAdds a word to a specified index of a fixed-capacity VECTOR
Vector32_addAdds a dword to a specified index of a VECTOR
Vector32Fixed_addAdds a dword to a specified index of a fixed-capacity VECTOR
Vector64_addAdds a qword to a specified index of a VECTOR
Vector64Fixed_addAdds a qword to a specified index of a fixed-capacity VECTOR
Vector128_addAdds a dqword to a specified index of a VECTOR
Vector128Fixed_addAdds a dqword to a specified index of a fixed-capacity VECTOR
addFirstFunctions for adding to the beginning of a VECTOR
Functions
Vector8_addFirstAdds a byte to the beginning of a VECTOR
Vector8Fixed_addFirstAdds a byte to the beginning of a VECTOR
Vector16_addFirstAdds a word to the beginning of a VECTOR
Vector16Fixed_addFirstAdds a word to the beginning of a VECTOR
Vector32_addFirstAdds a dword to the beginning of a VECTOR
Vector32Fixed_addFirstAdds a dword to the beginning of a VECTOR
Vector64_addFirstAdds a qword to the beginning of a VECTOR
Vector64Fixed_addFirstAdds a qword to the beginning of a VECTOR
Vector128_addFirstAdds a dqword to the beginning of a VECTOR
Vector128Fixed_addFirstAdds a dqword to the beginning of a VECTOR
addLastFunctions for adding to the end of a VECTOR
Functions
Vector8_addLastAdds a byte to the end of a VECTOR
Vector8Fixed_addLastAdds a byte to the end of a VECTOR
Vector16_addLastAdds a word to the end of a VECTOR
Vector16Fixed_addLastAdds a word to the end of a VECTOR
Vector32_addLastAdds a dword to the end of a VECTOR
Vector32Fixed_addLastAdds a dword to the end of a VECTOR
Vector64_addLastAdds a qword to the end of a VECTOR
Vector64Fixed_addLastAdds a qword to the end of a VECTOR
Vector128_addLastAdds a dqword to the end of a VECTOR
Vector128Fixed_addLastAdds a dqword to the end of a VECTOR
addSortedFunctions for adding to a sorted VECTOR
addUnorderedFunctions for adding to any point within an unordered VECTOR
Functions
Vector8_addUnorderedAdds a byte to a specified index of an unordered VECTOR
Vector8Fixed_addUnorderedAdds a byte to a specified index of a fixed-capacity unordered VECTOR
Vector16_addUnorderedAdds a word to a specified index of an unordered VECTOR
Vector16Fixed_addUnorderedAdds a word to a specified index of a fixed-capacity unordered VECTOR
Vector32_addUnorderedAdds a dword to a specified index of an unordered VECTOR
Vector32Fixed_addUnorderedAdds a dword to a specified index of a fixed-capacity unordered VECTOR
Vector64_addUnorderedAdds a qword to a specified index of an unordered VECTOR
Vector64Fixed_addUnorderedAdds a qword to a specified index of a fixed-capacity unordered VECTOR
Vector128_addUnorderedAdds a dqword to a specified index of an unordered VECTOR
Vector128Fixed_addUnorderedAdds a dqword to a specified index of a fixed-capacity unordered VECTOR
removeFunctions for removing from any point within a VECTOR
Functions
Vector8_removeRemoves a byte from a specified index of a VECTOR
Vector8Fixed_removeRemoves a byte from a specified index of a fixed-capacity VECTOR
Vector16_removeRemoves a word from a specified index of a VECTOR
Vector16Fixed_removeRemoves a word from a specified index of a fixed-capacity VECTOR
Vector32_removeRemoves a dword from a specified index of a VECTOR
Vector32Fixed_removeRemoves a dword from a specified index of a fixed-capacity VECTOR
Vector64_removeRemoves a qword from a specified index of a VECTOR
Vector64Fixed_removeRemoves a qword from a specified index of a fixed-capacity VECTOR
Vector128_removeRemoves a dqword from a specified index of a VECTOR
Vector128Fixed_removeRemoves a dqword from a specified index of a fixed-capacity VECTOR
removeFirstFunctions for removing from the beginning of a VECTOR
Functions
Vector8_removeFirstRemoves a byte from the beginning of a VECTOR
Vector8Fixed_removeFirstRemoves a byte from the beginning of a VECTOR
Vector16_removeFirstRemoves a word from the beginning of a VECTOR
Vector16Fixed_removeFirstRemoves a word from the beginning of a VECTOR
Vector32_removeFirstRemoves a dword from the beginning of a VECTOR
Vector32Fixed_removeFirstRemoves a dword from the beginning of a VECTOR
Vector64_removeFirstRemoves a qword from the beginning of a VECTOR
Vector64Fixed_removeFirstRemoves a qword from the beginning of a VECTOR
Vector128_removeFirstRemoves a dqword from the beginning of a VECTOR
Vector128Fixed_removeFirstRemoves a dqword from the beginning of a VECTOR
removeLastFunctions for removing from the end of a VECTOR
Functions
Vector8_removeLastRemoves a byte from the end of a VECTOR
Vector8Fixed_removeLastRemoves a byte from the end of a VECTOR
Vector16_removeLastRemoves a word from the end of a VECTOR
Vector16Fixed_removeLastRemoves a word from the end of a VECTOR
Vector32_removeLastRemoves a dword from the end of a VECTOR
Vector32Fixed_removeLastRemoves a dword from the end of a VECTOR
Vector64_removeLastRemoves a qword from the end of a VECTOR
Vector64Fixed_removeLastRemoves a qword from the end of a VECTOR
Vector128_removeLastRemoves a dqword from the end of a VECTOR
Vector128Fixed_removeLastRemoves a dqword from the end of a VECTOR
getFunctions for getting from any point within a VECTOR
Functions
Vector8_getGets a byte from a VECTOR
Vector16_getGets a word from a VECTOR
Vector32_getGets a dword from a VECTOR
Vector64_getGets a qword from a VECTOR
Vector128_getGets a dqword from a VECTOR
getFirstFunctions for getting the first element of a VECTOR
Functions
Vector8_getFirstGets the first byte from a VECTOR
Vector16_getFirstGets the first word from a VECTOR
Vector32_getFirstGets the first dword from a VECTOR
Vector64_getFirstGets the first qword from a VECTOR
Vector128_getFirstGets the first dqword from a VECTOR
getLastFunctions for getting the last element of a VECTOR
Functions
Vector8_getLastGets the last byte from a VECTOR
Vector16_getLastGets the last word from a VECTOR
Vector32_getLastGets the last dword from a VECTOR
Vector64_getLastGets the last qword from a VECTOR
Vector128_getLastGets the last dqword from a VECTOR
setFunctions for setting any point within a VECTOR
Functions
Vector8_setSets a byte in a VECTOR
Vector16_setSets a word in a VECTOR
Vector32_setSets a dword in a VECTOR
Vector64_setSets a qword in a VECTOR
Vector128_setSets a dqword in a VECTOR
indexOfFunctions for finding the index of a value in a VECTOR
Functions
Vector8_indexOfReturns the index of a byte in a VECTOR, or -1 if it’s not in the VECTOR
Vector16_indexOfReturns the index of a word in a VECTOR, or -1 if it’s not in the VECTOR
Vector32_indexOfReturns the index of a dword in a VECTOR, or -1 if it’s not in the VECTOR
Vector64_indexOfReturns the index of a qword in a VECTOR, or -1 if it’s not in the VECTOR
Vector128_indexOfReturns the index of a dqword in a VECTOR, or -1 if it’s not in the VECTOR
lastIndexOfFunctions for finding the last index of a value in a VECTOR
Functions
Vector8_lastIndexOfReturns the last index of a byte in a VECTOR, or -1 if it’s not in the VECTOR
Vector16_lastIndexOfReturns the last index of a word in a VECTOR, or -1 if it’s not in the VECTOR
Vector32_lastIndexOfReturns the last index of a dword in a VECTOR, or -1 if it’s not in the VECTOR
Vector64_lastIndexOfReturns the last index of a qword in a VECTOR, or -1 if it’s not in the VECTOR
Vector128_lastIndexOfReturns the last index of a dqword in a VECTOR, or -1 if it’s not in the VECTOR
clearFunctions for clearing a VECTOR
Functions
Vector8_clearClears a VECTOR, setting its capacity back to the minimum
Vector16_clearClears a VECTOR, setting its capacity back to the minimum
Vector32_clearClears a VECTOR, setting its capacity back to the minimum
Vector64_clearClears a VECTOR, setting its capacity back to the minimum
Vector128_clearClears a VECTOR, setting its capacity back to the minimum
copyFunctions for copying a VECTOR
Macros
VectorCopyMacroCopies the content of a VECTOR
Functions
Vector8_copyCopies a VECTOR
Vector16_copyCopies a VECTOR
Vector32_copyCopies a VECTOR
Vector64_copyCopies a VECTOR
Vector128_copyCopies a VECTOR
equalsFunctions for checking equality of two VECTORs
Functions
Vector8_equalsChecks the equality of two VECTORs
Vector16_equalsChecks the equality of two VECTORs
Vector32_equalsChecks the equality of two VECTORs
Vector64_equalsChecks the equality of two VECTORs
Vector128_equalsChecks the equality of two VECTORs
binarySearchFunctions for finding values in a sorted VECTOR
Functions
VectorByte_binarySearchFinds a byte in a sorted VECTOR of bytes with a binary search
VectorSByte_binarySearchFinds a signed byte in a sorted VECTOR of signed bytes with a binary search
VectorWord_binarySearchFinds a word in a sorted VECTOR of words with a binary search
VectorSWord_binarySearchFinds a signed word in a sorted VECTOR of signed words with a binary search
VectorDword_binarySearchFinds a dword in a sorted VECTOR of dwords with a binary search
VectorSDword_binarySearchFinds a signed dword in a sorted VECTOR of signed dwords with a binary search
VectorReal4_binarySearchFinds a 4-byte real in a sorted VECTOR of 4-byte reals with a binary search
VectorQword_binarySearchFinds a qword in a sorted VECTOR of qwords with a binary search
VectorSQword_binarySearchFinds a signed qword in a sorted VECTOR of signed qwords with a binary search
VectorReal8_binarySearchFinds an 8-byte real in a sorted VECTOR of 8-byte reals with a binary search
VectorDqword_binarySearchFinds a dqword in a sorted VECTOR of dqwords with a binary search
VectorSDqword_binarySearchFinds a signed dqword in a sorted VECTOR of signed dqwords with a binary search
Helper Functions
Functions
Vector_doubleCapacityDoubles the capacity of a VECTOR
Vector_halfCapacityHalves the capacity of a VECTOR

new

Functions for allocating a new VECTOR

Parameters

capacityinitial capacity of the VECTOR (gets rounded up to multiple of 16 and minimum 16)
contentTypetype constant of the VECTOR

Returns

Summary
Functions
Vector8_newAllocates a new VECTOR of bytes
Vector16_newAllocates a new VECTOR of words
Vector32_newAllocates a new VECTOR of dwords
Vector64_newAllocates a new VECTOR of qwords
Vector128_newAllocates a new VECTOR of dqwords

Functions

Vector8_new

Allocates a new VECTOR of bytes

Parameters

capacityinitial capacity of the VECTOR (gets rounded up to multiple of 64 and minimum 64)
contentTypetype constant of the VECTOR

Returns

Vector16_new

Allocates a new VECTOR of words

Parameters

capacityinitial capacity of the VECTOR (gets rounded up to multiple of 32 and minimum 32)
contentTypetype constant of the VECTOR

Returns

Vector32_new

Allocates a new VECTOR of dwords

Parameters

capacityinitial capacity of the VECTOR (gets rounded up to multiple of 16 and minimum 16)
contentTypetype constant of the VECTOR

Returns

Vector64_new

Allocates a new VECTOR of qwords

Parameters

capacityinitial capacity of the VECTOR (gets rounded up to multiple of 8 and minimum 8)
contentTypetype constant of the VECTOR

Returns

Vector128_new

Allocates a new VECTOR of dqwords

Parameters

capacityinitial capacity of the VECTOR (gets rounded up to multiple of 4 and minimum 4)
contentTypetype constant of the VECTOR

Returns

delete

Functions for deallocating a VECTOR

Parameters

pVectoraddress of the VECTOR
Summary

Functions

Vector_delete

Deallocates a VECTOR

Parameters

pVectoraddress of the VECTOR

add

Functions for adding to any point within a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index
Summary
Functions
Vector8_addAdds a byte to a specified index of a VECTOR
Vector8Fixed_addAdds a byte to a specified index of a fixed-capacity VECTOR
Vector16_addAdds a word to a specified index of a VECTOR
Vector16Fixed_addAdds a word to a specified index of a fixed-capacity VECTOR
Vector32_addAdds a dword to a specified index of a VECTOR
Vector32Fixed_addAdds a dword to a specified index of a fixed-capacity VECTOR
Vector64_addAdds a qword to a specified index of a VECTOR
Vector64Fixed_addAdds a qword to a specified index of a fixed-capacity VECTOR
Vector128_addAdds a dqword to a specified index of a VECTOR
Vector128Fixed_addAdds a dqword to a specified index of a fixed-capacity VECTOR

Functions

Vector8_add

Adds a byte to a specified index of a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector8Fixed_add

Adds a byte to a specified index of a fixed-capacity VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector16_add

Adds a word to a specified index of a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector16Fixed_add

Adds a word to a specified index of a fixed-capacity VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector32_add

Adds a dword to a specified index of a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector32Fixed_add

Adds a dword to a specified index of a fixed-capacity VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector64_add

Adds a qword to a specified index of a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector64Fixed_add

Adds a qword to a specified index of a fixed-capacity VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector128_add

Adds a dqword to a specified index of a VECTOR

NOTE: Changes values in xmm0, xmm1, and possibly xmm2, xmm3, and xmm4

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector128Fixed_add

Adds a dqword to a specified index of a fixed-capacity VECTOR

NOTE: Changes values in xmm0 and xmm1

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

addFirst

Functions for adding to the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add
Summary
Functions
Vector8_addFirstAdds a byte to the beginning of a VECTOR
Vector8Fixed_addFirstAdds a byte to the beginning of a VECTOR
Vector16_addFirstAdds a word to the beginning of a VECTOR
Vector16Fixed_addFirstAdds a word to the beginning of a VECTOR
Vector32_addFirstAdds a dword to the beginning of a VECTOR
Vector32Fixed_addFirstAdds a dword to the beginning of a VECTOR
Vector64_addFirstAdds a qword to the beginning of a VECTOR
Vector64Fixed_addFirstAdds a qword to the beginning of a VECTOR
Vector128_addFirstAdds a dqword to the beginning of a VECTOR
Vector128Fixed_addFirstAdds a dqword to the beginning of a VECTOR

Functions

Vector8_addFirst

Adds a byte to the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector8Fixed_addFirst

Adds a byte to the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector16_addFirst

Adds a word to the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector16Fixed_addFirst

Adds a word to the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector32_addFirst

Adds a dword to the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector32Fixed_addFirst

Adds a dword to the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector64_addFirst

Adds a qword to the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector64Fixed_addFirst

Adds a qword to the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector128_addFirst

Adds a dqword to the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector128Fixed_addFirst

Adds a dqword to the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

addLast

Functions for adding to the end of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add
Summary
Functions
Vector8_addLastAdds a byte to the end of a VECTOR
Vector8Fixed_addLastAdds a byte to the end of a VECTOR
Vector16_addLastAdds a word to the end of a VECTOR
Vector16Fixed_addLastAdds a word to the end of a VECTOR
Vector32_addLastAdds a dword to the end of a VECTOR
Vector32Fixed_addLastAdds a dword to the end of a VECTOR
Vector64_addLastAdds a qword to the end of a VECTOR
Vector64Fixed_addLastAdds a qword to the end of a VECTOR
Vector128_addLastAdds a dqword to the end of a VECTOR
Vector128Fixed_addLastAdds a dqword to the end of a VECTOR

Functions

Vector8_addLast

Adds a byte to the end of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector8Fixed_addLast

Adds a byte to the end of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector16_addLast

Adds a word to the end of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector16Fixed_addLast

Adds a word to the end of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector32_addLast

Adds a dword to the end of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector32Fixed_addLast

Adds a dword to the end of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector64_addLast

Adds a qword to the end of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector64Fixed_addLast

Adds a qword to the end of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector128_addLast

Adds a dqword to the end of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

Vector128Fixed_addLast

Adds a dqword to the end of a VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue to add

addSorted

Functions for adding to a sorted VECTOR

Not Implemented

Parameters

pVectoraddress of VECTOR
valuevalue to add

addUnordered

Functions for adding to any point within an unordered VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add
Summary
Functions
Vector8_addUnorderedAdds a byte to a specified index of an unordered VECTOR
Vector8Fixed_addUnorderedAdds a byte to a specified index of a fixed-capacity unordered VECTOR
Vector16_addUnorderedAdds a word to a specified index of an unordered VECTOR
Vector16Fixed_addUnorderedAdds a word to a specified index of a fixed-capacity unordered VECTOR
Vector32_addUnorderedAdds a dword to a specified index of an unordered VECTOR
Vector32Fixed_addUnorderedAdds a dword to a specified index of a fixed-capacity unordered VECTOR
Vector64_addUnorderedAdds a qword to a specified index of an unordered VECTOR
Vector64Fixed_addUnorderedAdds a qword to a specified index of a fixed-capacity unordered VECTOR
Vector128_addUnorderedAdds a dqword to a specified index of an unordered VECTOR
Vector128Fixed_addUnorderedAdds a dqword to a specified index of a fixed-capacity unordered VECTOR

Functions

Vector8_addUnordered

Adds a byte to a specified index of an unordered VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector8Fixed_addUnordered

Adds a byte to a specified index of a fixed-capacity unordered VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector16_addUnordered

Adds a word to a specified index of an unordered VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector16Fixed_addUnordered

Adds a word to a specified index of a fixed-capacity unordered VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector32_addUnordered

Adds a dword to a specified index of an unordered VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector32Fixed_addUnordered

Adds a dword to a specified index of a fixed-capacity unordered VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector64_addUnordered

Adds a qword to a specified index of an unordered VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector64Fixed_addUnordered

Adds a qword to a specified index of a fixed-capacity unordered VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector128_addUnordered

Adds a dqword to a specified index of an unordered VECTOR

NOTE: Changes values in xmm0, xmm1

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

Vector128Fixed_addUnordered

Adds a dqword to a specified index of a fixed-capacity unordered VECTOR

NOTE: Changes values in xmm0, xmm1

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to add at index

remove

Functions for removing from any point within a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value removed
Summary
Functions
Vector8_removeRemoves a byte from a specified index of a VECTOR
Vector8Fixed_removeRemoves a byte from a specified index of a fixed-capacity VECTOR
Vector16_removeRemoves a word from a specified index of a VECTOR
Vector16Fixed_removeRemoves a word from a specified index of a fixed-capacity VECTOR
Vector32_removeRemoves a dword from a specified index of a VECTOR
Vector32Fixed_removeRemoves a dword from a specified index of a fixed-capacity VECTOR
Vector64_removeRemoves a qword from a specified index of a VECTOR
Vector64Fixed_removeRemoves a qword from a specified index of a fixed-capacity VECTOR
Vector128_removeRemoves a dqword from a specified index of a VECTOR
Vector128Fixed_removeRemoves a dqword from a specified index of a fixed-capacity VECTOR

Functions

Vector8_remove

Removes a byte from a specified index of a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value removed

Vector8Fixed_remove

Removes a byte from a specified index of a fixed-capacity VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value removed

Vector16_remove

Removes a word from a specified index of a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value removed

Vector16Fixed_remove

Removes a word from a specified index of a fixed-capacity VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value removed

Vector32_remove

Removes a dword from a specified index of a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value removed

Vector32Fixed_remove

Removes a dword from a specified index of a fixed-capacity VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value removed

Vector64_remove

Removes a qword from a specified index of a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value removed in edx:eax (edx high, eax low)

Vector64Fixed_remove

Removes a qword from a specified index of a fixed-capacity VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value removed in edx:eax (edx high, eax low)

Vector128_remove

Removes a dqword from a specified index of a VECTOR

NOTE: Changes values in xmm0, xmm1, and possibly xmm2, xmm3, and xmm4

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value removed in xmm0

Vector128Fixed_remove

Removes a dqword from a specified index of a fixed-capacity VECTOR

NOTE: Changes values in xmm0 and xmm1

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value removed in xmm0

removeFirst

Functions for removing from the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed
Summary
Functions
Vector8_removeFirstRemoves a byte from the beginning of a VECTOR
Vector8Fixed_removeFirstRemoves a byte from the beginning of a VECTOR
Vector16_removeFirstRemoves a word from the beginning of a VECTOR
Vector16Fixed_removeFirstRemoves a word from the beginning of a VECTOR
Vector32_removeFirstRemoves a dword from the beginning of a VECTOR
Vector32Fixed_removeFirstRemoves a dword from the beginning of a VECTOR
Vector64_removeFirstRemoves a qword from the beginning of a VECTOR
Vector64Fixed_removeFirstRemoves a qword from the beginning of a VECTOR
Vector128_removeFirstRemoves a dqword from the beginning of a VECTOR
Vector128Fixed_removeFirstRemoves a dqword from the beginning of a VECTOR

Functions

Vector8_removeFirst

Removes a byte from the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector8Fixed_removeFirst

Removes a byte from the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector16_removeFirst

Removes a word from the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector16Fixed_removeFirst

Removes a word from the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector32_removeFirst

Removes a dword from the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector32Fixed_removeFirst

Removes a dword from the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector64_removeFirst

Removes a qword from the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector64Fixed_removeFirst

Removes a qword from the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector128_removeFirst

Removes a dqword from the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector128Fixed_removeFirst

Removes a dqword from the beginning of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

removeLast

Functions for removing from the end of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed
Summary
Functions
Vector8_removeLastRemoves a byte from the end of a VECTOR
Vector8Fixed_removeLastRemoves a byte from the end of a VECTOR
Vector16_removeLastRemoves a word from the end of a VECTOR
Vector16Fixed_removeLastRemoves a word from the end of a VECTOR
Vector32_removeLastRemoves a dword from the end of a VECTOR
Vector32Fixed_removeLastRemoves a dword from the end of a VECTOR
Vector64_removeLastRemoves a qword from the end of a VECTOR
Vector64Fixed_removeLastRemoves a qword from the end of a VECTOR
Vector128_removeLastRemoves a dqword from the end of a VECTOR
Vector128Fixed_removeLastRemoves a dqword from the end of a VECTOR

Functions

Vector8_removeLast

Removes a byte from the end of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector8Fixed_removeLast

Removes a byte from the end of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector16_removeLast

Removes a word from the end of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector16Fixed_removeLast

Removes a word from the end of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector32_removeLast

Removes a dword from the end of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector32Fixed_removeLast

Removes a dword from the end of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector64_removeLast

Removes a qword from the end of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector64Fixed_removeLast

Removes a qword from the end of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector128_removeLast

Removes a dqword from the end of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

Vector128Fixed_removeLast

Removes a dqword from the end of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value removed

get

Functions for getting from any point within a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value at index
Summary
Functions
Vector8_getGets a byte from a VECTOR
Vector16_getGets a word from a VECTOR
Vector32_getGets a dword from a VECTOR
Vector64_getGets a qword from a VECTOR
Vector128_getGets a dqword from a VECTOR

Functions

Vector8_get

Gets a byte from a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value at index

Vector16_get

Gets a word from a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value at index

Vector32_get

Gets a dword from a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value at index

Vector64_get

Gets a qword from a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value at index in edx:eax (edx high, eax low)

Vector128_get

Gets a dqword from a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value at index in xmm0

getFirst

Functions for getting the first element of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value in first place
Summary
Functions
Vector8_getFirstGets the first byte from a VECTOR
Vector16_getFirstGets the first word from a VECTOR
Vector32_getFirstGets the first dword from a VECTOR
Vector64_getFirstGets the first qword from a VECTOR
Vector128_getFirstGets the first dqword from a VECTOR

Functions

Vector8_getFirst

Gets the first byte from a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value in first place

Vector16_getFirst

Gets the first word from a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value in first place

Vector32_getFirst

Gets the first dword from a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value in first place

Vector64_getFirst

Gets the first qword from a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value in first place in edx:eax (edx high, eax low)

Vector128_getFirst

Gets the first dqword from a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value in first place in xmm0

getLast

Functions for getting the last element of a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value in last place
Summary
Functions
Vector8_getLastGets the last byte from a VECTOR
Vector16_getLastGets the last word from a VECTOR
Vector32_getLastGets the last dword from a VECTOR
Vector64_getLastGets the last qword from a VECTOR
Vector128_getLastGets the last dqword from a VECTOR

Functions

Vector8_getLast

Gets the last byte from a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • value in last place

Vector16_getLast

Gets the last word from a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value in last place

Vector32_getLast

Gets the last dword from a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value in last place

Vector64_getLast

Gets the last qword from a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value in last place in edx:eax (edx high, eax low)

Vector128_getLast

Gets the last dqword from a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR

Returns

  • value in last place in xmm0

set

Functions for setting any point within a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to set at index
Summary
Functions
Vector8_setSets a byte in a VECTOR
Vector16_setSets a word in a VECTOR
Vector32_setSets a dword in a VECTOR
Vector64_setSets a qword in a VECTOR
Vector128_setSets a dqword in a VECTOR

Functions

Vector8_set

Sets a byte in a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to set at index

Vector16_set

Sets a word in a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to set at index

Vector32_set

Sets a dword in a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to set at index

Vector64_set

Sets a qword in a VECTOR

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to set at index

Vector128_set

Sets a dqword in a VECTOR

NOTE: Changes value in xmm0

Parameters

pVectoraddress of VECTOR
indexindex into VECTOR
valuevalue to set at index

indexOf

Functions for finding the index of a value in a VECTOR

Parameters

pVectoraddress of VECTOR
startIndexindex at which to start search (inclusive)
endIndexindex at which to end search (exclusive)
valuevalue for which to search
Summary
Functions
Vector8_indexOfReturns the index of a byte in a VECTOR, or -1 if it’s not in the VECTOR
Vector16_indexOfReturns the index of a word in a VECTOR, or -1 if it’s not in the VECTOR
Vector32_indexOfReturns the index of a dword in a VECTOR, or -1 if it’s not in the VECTOR
Vector64_indexOfReturns the index of a qword in a VECTOR, or -1 if it’s not in the VECTOR
Vector128_indexOfReturns the index of a dqword in a VECTOR, or -1 if it’s not in the VECTOR

Functions

Vector8_indexOf

Returns the index of a byte in a VECTOR, or -1 if it’s not in the VECTOR

Parameters

pVectoraddress of VECTOR
startIndexindex at which to start search (inclusive)
endIndexindex at which to end search (exclusive)
valuevalue for which to search

Vector16_indexOf

Returns the index of a word in a VECTOR, or -1 if it’s not in the VECTOR

Parameters

pVectoraddress of VECTOR
startIndexindex at which to start search (inclusive)
endIndexindex at which to end search (exclusive)
valuevalue for which to search

Vector32_indexOf

Returns the index of a dword in a VECTOR, or -1 if it’s not in the VECTOR

Parameters

pVectoraddress of VECTOR
startIndexindex at which to start search (inclusive)
endIndexindex at which to end search (exclusive)
valuevalue for which to search

Vector64_indexOf

Returns the index of a qword in a VECTOR, or -1 if it’s not in the VECTOR

Parameters

pVectoraddress of VECTOR
startIndexindex at which to start search (inclusive)
endIndexindex at which to end search (exclusive)
valuevalue for which to search

Vector128_indexOf

Returns the index of a dqword in a VECTOR, or -1 if it’s not in the VECTOR

Parameters

pVectoraddress of VECTOR
startIndexindex at which to start search (inclusive)
endIndexindex at which to end search (exclusive)
valuevalue for which to search

lastIndexOf

Functions for finding the last index of a value in a VECTOR

Parameters

pVectoraddress of VECTOR
startIndexindex at which to start search (inclusive)
endIndexindex at which to end search (exclusive)
valuevalue for which to search
Summary
Functions
Vector8_lastIndexOfReturns the last index of a byte in a VECTOR, or -1 if it’s not in the VECTOR
Vector16_lastIndexOfReturns the last index of a word in a VECTOR, or -1 if it’s not in the VECTOR
Vector32_lastIndexOfReturns the last index of a dword in a VECTOR, or -1 if it’s not in the VECTOR
Vector64_lastIndexOfReturns the last index of a qword in a VECTOR, or -1 if it’s not in the VECTOR
Vector128_lastIndexOfReturns the last index of a dqword in a VECTOR, or -1 if it’s not in the VECTOR

Functions

Vector8_lastIndexOf

Returns the last index of a byte in a VECTOR, or -1 if it’s not in the VECTOR

Parameters

pVectoraddress of VECTOR
startIndexindex at which to start search (inclusive)
endIndexindex at which to end search (exclusive)
valuevalue for which to search

Vector16_lastIndexOf

Returns the last index of a word in a VECTOR, or -1 if it’s not in the VECTOR

Parameters

pVectoraddress of VECTOR
startIndexindex at which to start search (inclusive)
endIndexindex at which to end search (exclusive)
valuevalue for which to search

Vector32_lastIndexOf

Returns the last index of a dword in a VECTOR, or -1 if it’s not in the VECTOR

Parameters

pVectoraddress of VECTOR
startIndexindex at which to start search (inclusive)
endIndexindex at which to end search (exclusive)
valuevalue for which to search

Vector64_lastIndexOf

Returns the last index of a qword in a VECTOR, or -1 if it’s not in the VECTOR

Parameters

pVectoraddress of VECTOR
startIndexindex at which to start search (inclusive)
endIndexindex at which to end search (exclusive)
valuevalue for which to search

Vector128_lastIndexOf

Returns the last index of a dqword in a VECTOR, or -1 if it’s not in the VECTOR

Parameters

pVectoraddress of VECTOR
startIndexindex at which to start search (inclusive)
endIndexindex at which to end search (exclusive)
valuevalue for which to search

clear

Functions for clearing a VECTOR

Parameters

pVectoraddress of VECTOR
Summary
Functions
Vector8_clearClears a VECTOR, setting its capacity back to the minimum
Vector16_clearClears a VECTOR, setting its capacity back to the minimum
Vector32_clearClears a VECTOR, setting its capacity back to the minimum
Vector64_clearClears a VECTOR, setting its capacity back to the minimum
Vector128_clearClears a VECTOR, setting its capacity back to the minimum

Functions

Vector8_clear

Clears a VECTOR, setting its capacity back to the minimum

NOTE: Only makes sense for a variable-capacity VECTOR

Parameters

pVectoraddress of VECTOR

Vector16_clear

Clears a VECTOR, setting its capacity back to the minimum

NOTE: Only makes sense for a variable-capacity VECTOR

Parameters

pVectoraddress of VECTOR

Vector32_clear

Clears a VECTOR, setting its capacity back to the minimum

NOTE: Only makes sense for a variable-capacity VECTOR

Parameters

pVectoraddress of VECTOR

Vector64_clear

Clears a VECTOR, setting its capacity back to the minimum

NOTE: Only makes sense for a variable-capacity VECTOR

Parameters

pVectoraddress of VECTOR

Vector128_clear

Clears a VECTOR, setting its capacity back to the minimum

NOTE: Only makes sense for a variable-capacity VECTOR

Parameters

pVectoraddress of VECTOR

copy

Functions for copying a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • address of copy

Macros

VectorCopyMacro

Copies the content of a VECTOR

Parameters

ebxsource address
eaxdestination address
ecxsize in bytes to copy

Functions

Vector8_copy

Copies a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • address of copy

Vector16_copy

Copies a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • address of copy

Vector32_copy

Copies a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • address of copy

Vector64_copy

Copies a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • address of copy

Vector128_copy

Copies a VECTOR

Parameters

pVectoraddress of VECTOR

Returns

  • address of copy

equals

Functions for checking equality of two VECTORs

NOTE: Doesn’t check for capacity difference

Parameters

pVector0address of one VECTOR
pVector1address of the other VECTOR

Returns

  • index at which the arrays are first different, or -1 if the same, and always 0 if lengths different
Summary
Functions
Vector8_equalsChecks the equality of two VECTORs
Vector16_equalsChecks the equality of two VECTORs
Vector32_equalsChecks the equality of two VECTORs
Vector64_equalsChecks the equality of two VECTORs
Vector128_equalsChecks the equality of two VECTORs

Functions

Vector8_equals

Checks the equality of two VECTORs

NOTE: Doesn’t check for capacity difference

Parameters

pVector0address of one VECTOR
pVector1address of the other VECTOR

Returns

  • index at which the arrays are first different, or -1 if the same, and always 0 if lengths different

Vector16_equals

Checks the equality of two VECTORs

NOTE: Doesn’t check for capacity difference

Parameters

pVector0address of one VECTOR
pVector1address of the other VECTOR

Returns

  • index at which the arrays are first different, or -1 if the same, and always 0 if lengths different

Vector32_equals

Checks the equality of two VECTORs

NOTE: Doesn’t check for capacity difference

Parameters

pVector0address of one VECTOR
pVector1address of the other VECTOR

Returns

  • index at which the arrays are first different, or -1 if the same, and always 0 if lengths different

Vector64_equals

Checks the equality of two VECTORs

NOTE: Doesn’t check for capacity difference

Parameters

pVector0address of one VECTOR
pVector1address of the other VECTOR

Returns

  • index at which the arrays are first different, or -1 if the same, and always 0 if lengths different

Vector128_equals

Checks the equality of two VECTORs

NOTE: Doesn’t check for capacity difference

Parameters

pVector0address of one VECTOR
pVector1address of the other VECTOR

Returns

  • index at which the arrays are first different, or -1 if the same, and always 0 if lengths different

binarySearch

Functions for finding values in a sorted VECTOR

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted
Summary
Functions
VectorByte_binarySearchFinds a byte in a sorted VECTOR of bytes with a binary search
VectorSByte_binarySearchFinds a signed byte in a sorted VECTOR of signed bytes with a binary search
VectorWord_binarySearchFinds a word in a sorted VECTOR of words with a binary search
VectorSWord_binarySearchFinds a signed word in a sorted VECTOR of signed words with a binary search
VectorDword_binarySearchFinds a dword in a sorted VECTOR of dwords with a binary search
VectorSDword_binarySearchFinds a signed dword in a sorted VECTOR of signed dwords with a binary search
VectorReal4_binarySearchFinds a 4-byte real in a sorted VECTOR of 4-byte reals with a binary search
VectorQword_binarySearchFinds a qword in a sorted VECTOR of qwords with a binary search
VectorSQword_binarySearchFinds a signed qword in a sorted VECTOR of signed qwords with a binary search
VectorReal8_binarySearchFinds an 8-byte real in a sorted VECTOR of 8-byte reals with a binary search
VectorDqword_binarySearchFinds a dqword in a sorted VECTOR of dqwords with a binary search
VectorSDqword_binarySearchFinds a signed dqword in a sorted VECTOR of signed dqwords with a binary search

Functions

VectorByte_binarySearch

Finds a byte in a sorted VECTOR of bytes with a binary search

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted

VectorSByte_binarySearch

Finds a signed byte in a sorted VECTOR of signed bytes with a binary search

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted

VectorWord_binarySearch

Finds a word in a sorted VECTOR of words with a binary search

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted

VectorSWord_binarySearch

Finds a signed word in a sorted VECTOR of signed words with a binary search

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted

VectorDword_binarySearch

Finds a dword in a sorted VECTOR of dwords with a binary search

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted

VectorSDword_binarySearch

Finds a signed dword in a sorted VECTOR of signed dwords with a binary search

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted

VectorReal4_binarySearch

Finds a 4-byte real in a sorted VECTOR of 4-byte reals with a binary search

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted

VectorQword_binarySearch

Finds a qword in a sorted VECTOR of qwords with a binary search

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted

VectorSQword_binarySearch

Finds a signed qword in a sorted VECTOR of signed qwords with a binary search

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted

VectorReal8_binarySearch

Finds an 8-byte real in a sorted VECTOR of 8-byte reals with a binary search

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted

VectorDqword_binarySearch

Finds a dqword in a sorted VECTOR of dqwords with a binary search

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted

VectorSDqword_binarySearch

Finds a signed dqword in a sorted VECTOR of signed dqwords with a binary search

Parameters

pVectoraddress of VECTOR
valuevalue for which to search

Returns

  • index of value, or if not found, (-index-1), where index is where value would be inserted to keep the VECTOR sorted

Helper Functions

Summary
Functions
Vector_doubleCapacityDoubles the capacity of a VECTOR
Vector_halfCapacityHalves the capacity of a VECTOR

Functions

Vector_doubleCapacity

Doubles the capacity of a VECTOR

NOTE: This does not set the VECTOR.capacity value, since the element size is unknown, but does set VECTOR.pArray NOTE: Changes values in xmm0, xmm1, xmm2, and xmm3

Parameters

pVectoraddress of VECTOR
curNumBytescurrent number of bytes in array

Vector_halfCapacity

Halves the capacity of a VECTOR

NOTE: This does not set the VECTOR.capacity value, since the element size is unknown, but does set VECTOR.pArray NOTE: Changes values in xmm0, xmm1, xmm2, and xmm3

Parameters

pVectoraddress of VECTOR
curNumBytescurrent number of bytes in array
This structure is the base of a resizable (or fixed-capacity) array data structure.
This file defines structures and constants for the library of VECTOR data types and algorithms.
This file defines the library for common data types and algorithms of PwnOS.
This file defines structures and constants for the library of common data types and algorithms of PwnOS.