Examples of unref()


Examples of org.tmatesoft.sqljet.core.internal.ISqlJetPage.unref()

            page = getPage(1);

            try {
                page.write();
            } catch (SqlJetException e) {
                page.unref();
                throw e;
            }

            /* Increment the value just read and write it back to byte 24. */
            change_counter = SqlJetUtility.get4byte(dbFileVers);
View Full Code Here

Examples of org.tmatesoft.sqljet.core.internal.ISqlJetPage.unref()

            change_counter = SqlJetUtility.get4byte(dbFileVers);
            change_counter++;
            put32bits(page.getData(), 24, change_counter);

            /* Release the page reference. */
            page.unref();
            changeCountDone = true;
        }

    }

View Full Code Here

Examples of org.tmatesoft.sqljet.core.internal.ISqlJetPage.unref()

                    nextPage = get4byte(aPayload);
                    if (a + offset > ovflSize) {
                        a = ovflSize - offset;
                    }
                    copyPayload(aPayload, offset + 4, pBuf, 0, a, eOp, pDbPage);
                    pDbPage.unref();
                    offset = 0;
                    amt -= a;
                    pBuf.movePointer(a);
                }
            }
View Full Code Here

Examples of streamer.ByteBuffer.unref()

            case UPDATETYPE_PALETTE:
                pushDataToPad("palette", payload);
                break;
            case UPDATETYPE_SYNCHRONIZE:
                // Ignore
                payload.unref();
                break;
            }

            break;
        }
View Full Code Here

Examples of streamer.ByteBuffer.unref()

            case FASTPATH_UPDATETYPE_SYNCHRONIZE:
                // @see http://msdn.microsoft.com/en-us/library/cc240625.aspx
                if (verbose)
                    System.out.println("[" + this + "] INFO: FASTPATH_UPDATETYPE_SYNCHRONIZE.");

                data.unref();

                if (size != 0)
                    throw new RuntimeException("Size of FastPath synchronize packet must be 0. UpdateCode: " + updateCode + ", fragmentation: " + fragmentation
                            + ", compression: " + compression + ", size: " + size + ", data: " + data + ".");
                break;
View Full Code Here

Examples of streamer.ByteBuffer.unref()

            rectangle.bitmapDataStream = buf.readBytes(bitmapLength);
        } else {
            ByteBuffer compressedImage = buf.readBytes(bitmapLength);
            //* DEBUG */System.out.println("Compressed image: " + compressedImage + ", depth: " + rectangle.bitsPerPixel + ".");
            rectangle.bitmapDataStream = RLEBitmapDecompression.rleDecompress(compressedImage, rectangle.bufferWidth, rectangle.bufferHeight, rectangle.colorDepth);
            compressedImage.unref();
        }

        return rectangle;
    }

View Full Code Here

Examples of streamer.ByteBuffer.unref()

        data.writeByte(0);
        // Packet length, including length of the header
        data.writeShort(buf.length + 4);

        buf.prepend(data);
        data.unref();

        pushDataToPad(STDOUT, buf);
    }

}
View Full Code Here

Examples of streamer.ByteBuffer.unref()

        // Reset length of buffer to actual length of data written
        data.length = data.cursor;

        buf.prepend(data);
        data.unref();

        pushDataToOTOut(buf);

        switchOff();
    }
View Full Code Here

Examples of streamer.ByteBuffer.unref()

        data.writeByte(2); // Header length indicator
        data.writeByte(X224_TPDU_DATA);
        data.writeByte(X224_TPDU_LAST_DATA_UNIT);

        buf.prepend(data);
        data.unref();

        pushDataToPad(STDOUT, buf);
    }

}
View Full Code Here

Examples of streamer.ByteBuffer.unref()

            default:
                // Ignore
                break;
            }

            capabilityData.unref();
        }

        // TODO

        buf.unref();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.