test_class.declarator: builderProvider = new DocumentMKBuilderProvider()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public DocumentMKBuilderProvider builderProvider = new DocumentMKBuilderProvider();
test_class.type: DocumentMKBuilderProvider
test_class.var_name: builderProvider
test_class.declarator: wb = new WriteBuffer(1024)
test_class.modifier: private
test_class.original_string: private WriteBuffer wb = new WriteBuffer(1024);
test_class.type: WriteBuffer
test_class.var_name: wb
test_class.file: oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/persistentCache/DataTypeUtilTest.java
test_class.identifier: DataTypeUtilTest
test_case.body: @Test
      public void pathToBuffer() {
          Path p = Path.fromString("/foo/bar/quux");
          DataTypeUtil.pathToBuffer(p, wb);
          ByteBuffer rb = readBufferFrom(wb);
          assertEquals(p, DataTypeUtil.pathFromBuffer(rb));
      }
test_case.class_method_signature: DataTypeUtilTest.pathToBuffer()
test_case.full_signature: @Test public void pathToBuffer()
test_case.identifier: pathToBuffer
test_case.invocations: fromString pathToBuffer readBufferFrom assertEquals pathFromBuffer
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void pathToBuffer()
focal_class.file: oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/persistentCache/DataTypeUtil.java
focal_class.identifier: DataTypeUtil
focal_class.class_method_signature: DataTypeUtil.booleanToBuffer(boolean b, WriteBuffer buffer)
focal_class.full_signature: static void booleanToBuffer(boolean b, WriteBuffer buffer)
focal_class.identifier: booleanToBuffer
focal_class.modifiers: static
focal_class.parameters: (boolean b, WriteBuffer buffer)
focal_class.return: void
focal_class.signature: void booleanToBuffer(boolean b, WriteBuffer buffer)
focal_class.class_method_signature: DataTypeUtil.booleanFromBuffer(ByteBuffer buffer)
focal_class.full_signature: static boolean booleanFromBuffer(ByteBuffer buffer)
focal_class.identifier: booleanFromBuffer
focal_class.modifiers: static
focal_class.parameters: (ByteBuffer buffer)
focal_class.return: boolean
focal_class.signature: boolean booleanFromBuffer(ByteBuffer buffer)
focal_class.class_method_signature: DataTypeUtil.revisionVectorToBuffer(RevisionVector rv, WriteBuffer buffer)
focal_class.full_signature: static void revisionVectorToBuffer(RevisionVector rv, WriteBuffer buffer)
focal_class.identifier: revisionVectorToBuffer
focal_class.modifiers: static
focal_class.parameters: (RevisionVector rv, WriteBuffer buffer)
focal_class.return: void
focal_class.signature: void revisionVectorToBuffer(RevisionVector rv, WriteBuffer buffer)
focal_class.class_method_signature: DataTypeUtil.revisionVectorFromBuffer(ByteBuffer buffer)
focal_class.full_signature: static RevisionVector revisionVectorFromBuffer(ByteBuffer buffer)
focal_class.identifier: revisionVectorFromBuffer
focal_class.modifiers: static
focal_class.parameters: (ByteBuffer buffer)
focal_class.return: RevisionVector
focal_class.signature: RevisionVector revisionVectorFromBuffer(ByteBuffer buffer)
focal_class.class_method_signature: DataTypeUtil.pathToBuffer(Path p, WriteBuffer buffer)
focal_class.full_signature: static void pathToBuffer(Path p, WriteBuffer buffer)
focal_class.identifier: pathToBuffer
focal_class.modifiers: static
focal_class.parameters: (Path p, WriteBuffer buffer)
focal_class.return: void
focal_class.signature: void pathToBuffer(Path p, WriteBuffer buffer)
focal_class.class_method_signature: DataTypeUtil.pathFromBuffer(ByteBuffer buffer)
focal_class.full_signature: static Path pathFromBuffer(ByteBuffer buffer)
focal_class.identifier: pathFromBuffer
focal_class.modifiers: static
focal_class.parameters: (ByteBuffer buffer)
focal_class.return: Path
focal_class.signature: Path pathFromBuffer(ByteBuffer buffer)
focal_class.class_method_signature: DataTypeUtil.pathRevToBuffer(PathRev pr, WriteBuffer buffer)
focal_class.full_signature: static void pathRevToBuffer(PathRev pr, WriteBuffer buffer)
focal_class.identifier: pathRevToBuffer
focal_class.modifiers: static
focal_class.parameters: (PathRev pr, WriteBuffer buffer)
focal_class.return: void
focal_class.signature: void pathRevToBuffer(PathRev pr, WriteBuffer buffer)
focal_class.class_method_signature: DataTypeUtil.pathRevFromBuffer(ByteBuffer buffer)
focal_class.full_signature: static PathRev pathRevFromBuffer(ByteBuffer buffer)
focal_class.identifier: pathRevFromBuffer
focal_class.modifiers: static
focal_class.parameters: (ByteBuffer buffer)
focal_class.return: PathRev
focal_class.signature: PathRev pathRevFromBuffer(ByteBuffer buffer)
focal_class.class_method_signature: DataTypeUtil.namePathRevToBuffer(NamePathRev pnr, WriteBuffer buffer)
focal_class.full_signature: static void namePathRevToBuffer(NamePathRev pnr, WriteBuffer buffer)
focal_class.identifier: namePathRevToBuffer
focal_class.modifiers: static
focal_class.parameters: (NamePathRev pnr, WriteBuffer buffer)
focal_class.return: void
focal_class.signature: void namePathRevToBuffer(NamePathRev pnr, WriteBuffer buffer)
focal_class.class_method_signature: DataTypeUtil.namePathRevFromBuffer(ByteBuffer buffer)
focal_class.full_signature: static NamePathRev namePathRevFromBuffer(ByteBuffer buffer)
focal_class.identifier: namePathRevFromBuffer
focal_class.modifiers: static
focal_class.parameters: (ByteBuffer buffer)
focal_class.return: NamePathRev
focal_class.signature: NamePathRev namePathRevFromBuffer(ByteBuffer buffer)
focal_class.class_method_signature: DataTypeUtil.stateToBuffer(DocumentNodeState state, WriteBuffer buffer)
focal_class.full_signature: static void stateToBuffer(DocumentNodeState state, WriteBuffer buffer)
focal_class.identifier: stateToBuffer
focal_class.modifiers: static
focal_class.parameters: (DocumentNodeState state, WriteBuffer buffer)
focal_class.return: void
focal_class.signature: void stateToBuffer(DocumentNodeState state, WriteBuffer buffer)
focal_class.class_method_signature: DataTypeUtil.stateFromBuffer(DocumentNodeStore store,
                                               ByteBuffer buffer)
focal_class.full_signature: static DocumentNodeState stateFromBuffer(DocumentNodeStore store,
                                               ByteBuffer buffer)
focal_class.identifier: stateFromBuffer
focal_class.modifiers: static
focal_class.parameters: (DocumentNodeStore store,
                                               ByteBuffer buffer)
focal_class.return: DocumentNodeState
focal_class.signature: DocumentNodeState stateFromBuffer(DocumentNodeStore store,
                                               ByteBuffer buffer)
focal_method.body: static void pathToBuffer(Path p, WriteBuffer buffer) {
          int len = p.getDepth() + (p.isAbsolute() ? 1 : 0);
          buffer.putVarInt(len);
          // write path elements backwards
          while (p != null) {
              StringDataType.INSTANCE.write(buffer, p.getName());
              p = p.getParent();
          }
      }
focal_method.class_method_signature: DataTypeUtil.pathToBuffer(Path p, WriteBuffer buffer)
focal_method.full_signature: static void pathToBuffer(Path p, WriteBuffer buffer)
focal_method.identifier: pathToBuffer
focal_method.invocations: getDepth isAbsolute putVarInt write getName getParent
focal_method.modifiers: static
focal_method.parameters: (Path p, WriteBuffer buffer)
focal_method.return: void
focal_method.signature: void pathToBuffer(Path p, WriteBuffer buffer)