Sha256: f9f10dff71fcff17c6e705ac3a23d7c3da3718309960a9122198672c535cbe89

Contents?: true

Size: 473 Bytes

Versions: 15

Compression:

Stored size: 473 Bytes

Contents

# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

module NewRelic
  module Base64
    extend self

    def encode64(bin)
      [bin].pack('m')
    end

    def decode64(str)
      str.unpack1('m')
    end

    def strict_encode64(bin)
      [bin].pack('m0')
    end

    def strict_decode64(str)
      str.unpack1('m0')
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
newrelic_rpm-9.17.0 lib/new_relic/base64.rb
newrelic_rpm-9.16.1 lib/new_relic/base64.rb
newrelic_rpm-9.16.0 lib/new_relic/base64.rb
newrelic_rpm-9.15.0 lib/new_relic/base64.rb
newrelic_rpm-9.14.0 lib/new_relic/base64.rb
newrelic_rpm-9.13.0 lib/new_relic/base64.rb
newrelic_rpm-9.12.0 lib/new_relic/base64.rb
newrelic_rpm-9.11.0 lib/new_relic/base64.rb
newrelic_rpm-9.10.2 lib/new_relic/base64.rb
newrelic_rpm-9.10.1 lib/new_relic/base64.rb
newrelic_rpm-9.10.0 lib/new_relic/base64.rb
newrelic_rpm-9.9.0 lib/new_relic/base64.rb
newrelic_rpm-9.8.0 lib/new_relic/base64.rb
newrelic_rpm-9.7.1 lib/new_relic/base64.rb
newrelic_rpm-9.7.0 lib/new_relic/base64.rb