Function getEndPos [src]

Prototype

pub fn getEndPos(self: *StreamSource) GetSeekPosError!u64

Parameters

self: *StreamSource

Source

pub fn getEndPos(self: *StreamSource) GetSeekPosError!u64 { switch (self.*) { .buffer => |*x| return x.getEndPos(), .const_buffer => |*x| return x.getEndPos(), .file => |x| if (!has_file) unreachable else return x.getEndPos(), } }