h2/src/main/org/h2/mvstore/Page.java
/**
     * Store this page and all children that are changed, in reverse order, and
     * update the position and the children.
     *
     * @param chunk the chunk
     * @param buff the target buffer
     */
Store this page and all children that are changed, in reverse order, and
update the position and the children.

@param chunk the chunk
@param buff the target buffer
Store this page and all children that are changed in reverse order and update the position and the children . @param chunk the chunk @param buff the target buffer
void writeUnsavedRecursive(Chunk chunk, WriteBuffer buff) {
        if (pos != 0) {
            return;
        }
        if (!isLeaf()) {
            int len = childCount;
            for (int i = 0; i < len; i++) {
                Page p = childrenPages[i];
                if (p != null) {
                    p.writeUnsavedRecursive(chunk, buff);
                    children[i] = p.getPos();
                }
            }
        }
        write(chunk, buff);
    }
void writeUnsavedRecursive ( Chunk chunk , WriteBuffer buff ) { if ( pos != 0 ) { return ; } if ( ! isLeaf ( ) ) { int len = childCount ; for ( int i = 0 ; i < len ; i ++ ) { Page p = childrenPages [ i ] ; if ( p != null ) { p . writeUnsavedRecursive ( chunk , buff ) ; children [ i ] = p . getPos ( ) ; } } } write ( chunk , buff ) ; }
Store this page and all children that are changed, in reverse order, and
 update the position and the children.
Store this page and all children that are changed in reverse order and update the position and the children .
// already stored before