@Namespace(value="torch::jit") @NoOffset @Properties(inherit=torch.class) public class Source extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
Source.CopiesString |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Source(BytePointer text_view) |
Source(BytePointer text_view,
StringOptional filename,
long starting_line_no,
SourceRangeUnpickler gen_ranges,
Source.CopiesString copies_str) |
Source(Pointer p)
Pointer cast constructor.
|
Source(String text_view) |
Source(StringCordView str) |
Source(StringCordView str,
StringOptional filename,
long starting_line_no,
SourceRangeUnpickler gen_ranges) |
Source(String text_view,
StringOptional filename,
long starting_line_no,
SourceRangeUnpickler gen_ranges,
int copies_str) |
Modifier and Type | Method and Description |
---|---|
byte |
char_at(long index) |
StringOptional |
filename() |
StringCordView |
get_line(long lineno) |
long |
lineno_for_offset(long offset) |
long |
lineno_to_source_lineno(long lineno) |
long |
num_lines() |
long |
offset_for_line(long line) |
long |
size() |
long |
starting_line_no() |
StringCordView |
text_str() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Source(Pointer p)
Pointer(Pointer)
.public Source(@StringView BytePointer text_view, @ByVal(nullValue="c10::optional<std::string>(c10::nullopt)") StringOptional filename, @Cast(value="size_t") long starting_line_no, @SharedPtr SourceRangeUnpickler gen_ranges, Source.CopiesString copies_str)
public Source(@StringView BytePointer text_view)
public Source(@StringView String text_view, @ByVal(nullValue="c10::optional<std::string>(c10::nullopt)") StringOptional filename, @Cast(value="size_t") long starting_line_no, @SharedPtr SourceRangeUnpickler gen_ranges, @Cast(value="torch::jit::Source::CopiesString") int copies_str)
public Source(@StringView String text_view)
public Source(@ByVal StringCordView str, @ByVal(nullValue="c10::optional<std::string>(c10::nullopt)") StringOptional filename, @Cast(value="size_t") long starting_line_no, @SharedPtr SourceRangeUnpickler gen_ranges)
public Source(@ByVal StringCordView str)
@Cast(value="size_t") public long lineno_for_offset(@Cast(value="size_t") long offset)
@Cast(value="size_t") public long lineno_to_source_lineno(@Cast(value="size_t") long lineno)
@ByVal public StringCordView get_line(@Cast(value="size_t") long lineno)
@Const @ByRef public StringCordView text_str()
@ByRef public StringOptional filename()
Copyright © 2024. All rights reserved.