module Neo4j::Core::PackStream

Implements the the PackStream packing and unpacking specifications as specified by Neo Technology for the Neo4j graph database

Constants

HEADER_PACK_STRINGS
MARKER_BYTES

Translates directly from types to bytes

MARKER_HEADERS
MARKER_TYPES
Structure

Public Class Methods

marker_type_and_size(marker) click to toggle source
    # File lib/neo4j/core/cypher_session/adaptors/bolt/pack_stream.rb
278 def self.marker_type_and_size(marker)
279   if (marker_spec = MARKER_TYPES[marker]).is_a?(Array)
280     marker_spec
281   else
282     case marker
283     when 0x80..0x8F then [:tiny_text, marker - 0x80]
284     when 0x90..0x9F then [:tiny_list, marker - 0x90]
285     when 0xA0..0xAF then [:tiny_map, marker - 0xA0]
286     when 0xB0..0xBF then [:tiny_struct, marker - 0xB0]
287     end
288   end
289 end