Sha256: 70a52104e1af8cd889b8d57e6c50b4ff4b8c2b4fe2d0e2e1a08c7a07f21f43d9
Contents?: true
Size: 499 Bytes
Versions: 5
Compression:
Stored size: 499 Bytes
Contents
require 'prometheus/client/helper/entry_parser' module Prometheus module Client module Helper # Parses DB files without using mmap class PlainFile include EntryParser attr_reader :filepath def initialize(filepath) @filepath = filepath @data = File.read(filepath, mode: 'rb') end def slice(*args) @data.slice(*args) end def size @data.length end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems