Documentation
- Home /
- Documentation
ReadCompleteFile
ReadCompleteFile Description Read complete contents of file at once. Pointer returned is malloc’d and hence must be freed after use. The returned pointer can also be reused by providing pointer to it in data parameter. realloc is called on *data in order to expand it’s size. If *capacity exceeds the size of file to be loaded, then no reallocation is performed. This means the provided buffer will automatically be expanded if required. The returned buffer is null-terminated just-in-case. The implementation and API is designed in such a way that it can be used with containers like Vec and Str.
Read Morerun_test_suite
run_test_suite Description Main test driver that handles both normal and deadend tests.
Read MoreScope
Scope Description Run a scoped block and automatically deinitialize the object at the end. Executes scope_body and ensures obj_deinit(obj) is called afterward, regardless of the block’s control flow. This is similar to RAII-style resource management in C++ but implemented manually via a macro. The object is passed by pointer. It is not copied or moved. This macro ensures the object is only evaluated once by capturing it internally using TYPE_OF. The memory pointed to by obj is not cleared after deinitialization; if zeroing is needed, do it inside obj_deinit. Parameters:
Read MoreCategories
Tags
- 16-Bit
- 32-Bit
- 64-Bit
- Access
- Aligned
- Alignment
- All
- Allocation
- Analysis
- And
- Any
- Append
- Approximate
- Array
- ASCII
- Bioinformatics
- BitVec
- Bitwise
- Boolean
- Byte
- Bytes
- Callback
- Capacity
- Case
- Character
- Check
- Circular
- Cleanup
- Clear
- Clone
- Compare
- Comparison
- Container
- ContainsAt
- Control
- Convenience
- Conversion
- Convert
- Copy
- Correlation
- Cosine
- Count
- CString
- Deadend
- Deallocation
- DeepCopy
- DeepDeinit
- Deinit
- Detection
- Directory
- Disjoint
- Distance
- DotProduct
- Driver
- EditDistance
- Efficient
- Empty
- Endianness
- EndsWith
- Entropy
- Equal
- Equals
- Error
- EscapeSequences
- Export
- Fatal
- File
- FileSystem
- Find
- FindAll
- FindLast
- First
- Flip
- Float
- Format
- Formatting
- Function
- Fuzzy
- Generic
- Get
- Hamming
- Helper
- Hexadecimal
- I/O
- Import
- Info
- Information
- Init
- Initialization
- Insert
- Integer
- Intersection
- Iter
- Iterator
- Jaccard
- JSON
- KeyValue
- Last
- Left
- Length
- Lexicographic
- Logging
- LongestRun
- LowLevel
- Macro
- Match
- Math
- Max
- Memory
- Metadata
- Min
- Modify
- Multiple
- Native
- Nested
- None
- Not
- NullValue
- Number
- Numeric
- Numerical
- Object
- Ones
- Operation
- Optimize
- Or
- Order
- Overlap
- Overlaps
- Parsing
- Pattern
- Peek
- Platform
- Pointer
- Pop
- Population
- Pos
- Position
- PowerOfTwo
- Predicate
- Prefix
- Printable
- Process
- Push
- Query
- Range
- Read
- Reader
- Regex
- Remove
- Replace
- ReplaceAll
- Reserve
- Reset
- Resize
- Reverse
- RFind
- Right
- Rotate
- RunLength
- Safety
- Search
- Sequence
- Set
- Shift
- Shrink
- Signed
- Similarity
- Simple
- Single
- Size
- Sorted
- Stack
- StartsWith
- Statistics
- Status
- Stdin
- Stdout
- Str
- Strict
- String
- StrIter
- Structure
- Subset
- Suffix
- Suite
- Superset
- Swap
- Synchronization
- System
- Test
- Testing
- Threading
- Toggle
- Transform
- TypeConversion
- TypeSafety
- Utility
- Validation
- Value
- Vec
- Vector
- Weight
- Whitespace
- Wildcard
- Wrapper
- Writer
- Xor
- Zeros