Examples of Bytes


Examples of abstrasy.Bytes

         * forme (poke-double! bytes adr v)
         *
         */
        startAt.isGoodArgsCnt(4);
        startAt.requireNodeType(1, Node.VTYPE_INDIRECTION);
        Bytes b = (Bytes)startAt.getSubNode(1, Node.TYPE_BYTES).getExternal();
        int adr = (int) startAt.getSubNode(2, Node.TYPE_NUMBER).getNumber();
        double v =startAt.getSubNode(3, Node.TYPE_NUMBER).getNumber();
        b.poke_double(adr, v);
        return null;
    }
View Full Code Here

Examples of abstrasy.Bytes

         * forme (poke-ushort! bytes adr v)
         *
         */
        startAt.isGoodArgsCnt(4);
        startAt.requireNodeType(1, Node.VTYPE_INDIRECTION);
        Bytes b = (Bytes)startAt.getSubNode(1, Node.TYPE_BYTES).getExternal();
        int adr = (int) startAt.getSubNode(2, Node.TYPE_NUMBER).getNumber();
        double v =startAt.getSubNode(3, Node.TYPE_NUMBER).getNumber();
        int vf=((int)v) 0xFFFF;
        if(vf!=v)
             throw new InterpreterException(StdErrors.extend(StdErrors.Invalid_parameter,""+v));
        b.poke_ushort(adr, vf);
        return null;
    }
View Full Code Here

Examples of abstrasy.Bytes

        /*
         * forme (peek-double bytes adr len)
         *
         */
        startAt.isGoodArgsCnt(4);
        Bytes b = (Bytes)startAt.getSubNode(1, Node.TYPE_BYTES).getExternal();
        int adr = (int) startAt.getSubNode(2, Node.TYPE_NUMBER).getNumber();
        int len = (int) startAt.getSubNode(3, Node.TYPE_NUMBER).getNumber();
        return Node.createBytes(b.peek_bytes(adr,len));
    }
View Full Code Here

Examples of abstrasy.Bytes

         * forme (poke-long! bytes adr v)
         *
         */
        startAt.isGoodArgsCnt(4);
        startAt.requireNodeType(1, Node.VTYPE_INDIRECTION);
        Bytes b = (Bytes)startAt.getSubNode(1, Node.TYPE_BYTES).getExternal();
        int adr = (int) startAt.getSubNode(2, Node.TYPE_NUMBER).getNumber();
        double v =startAt.getSubNode(3, Node.TYPE_NUMBER).getNumber();
        long vf=(long)v;
        if(vf!=v)
             throw new InterpreterException(StdErrors.extend(StdErrors.Invalid_parameter,""+v));
        b.poke_long(adr, vf);
        return null;
    }
View Full Code Here

Examples of abstrasy.Bytes

        /*
         * forme (peek-long bytes adr)
         *
         */
        startAt.isGoodArgsCnt(3);
        Bytes b = (Bytes)startAt.getSubNode(1, Node.TYPE_BYTES).getExternal();
        int adr = (int) startAt.getSubNode(2, Node.TYPE_NUMBER).getNumber();
        return new Node(b.peek_long(adr));
    }
View Full Code Here

Examples of abstrasy.Bytes

             * (reverse bytes)
             */
            if (xnode.getBytes().length() > 0)
                return Node.createBytes(xnode.getBytes().reverseOf());
            else
                return Node.createBytes(new Bytes(0));
           
        }
        else {
           
            /**
 
View Full Code Here

Examples of abstrasy.Bytes

         * forme (poke! bytes adr v)
         *
         */
        startAt.isGoodArgsCnt(4);
        startAt.requireNodeType(1, Node.VTYPE_INDIRECTION);
        Bytes b = (Bytes)startAt.getSubNode(1, Node.TYPE_BYTES).getExternal();
        int adr = (int) startAt.getSubNode(2, Node.TYPE_NUMBER).getNumber();
        double v =startAt.getSubNode(3, Node.TYPE_NUMBER).getNumber();
        int vf=((int)v) 0xFF;
        if(vf!=v)
             throw new InterpreterException(StdErrors.extend(StdErrors.Invalid_parameter,""+v));
        b.poke(adr, (byte)vf);
        return null;
    }
View Full Code Here

Examples of abstrasy.Bytes

         * forme (poke-bytes! bytes adr v)
         *
         */
        startAt.isGoodArgsCnt(4);
        startAt.requireNodeType(1, Node.VTYPE_INDIRECTION);
        Bytes b = (Bytes)startAt.getSubNode(1, Node.TYPE_BYTES).getExternal();
        int adr = (int) startAt.getSubNode(2, Node.TYPE_NUMBER).getNumber();
        Bytes v = (Bytes)startAt.getSubNode(3, Node.TYPE_BYTES).getExternal();
        b.poke_bytes(adr, v);
        return null;
    }
View Full Code Here

Examples of abstrasy.Bytes

         * forme (poke-int! bytes adr v)
         *
         */
        startAt.isGoodArgsCnt(4);
        startAt.requireNodeType(1, Node.VTYPE_INDIRECTION);
        Bytes b = (Bytes)startAt.getSubNode(1, Node.TYPE_BYTES).getExternal();
        int adr = (int) startAt.getSubNode(2, Node.TYPE_NUMBER).getNumber();
        double v =startAt.getSubNode(3, Node.TYPE_NUMBER).getNumber();
        int vf=(int)v;
        if(vf!=v)
             throw new InterpreterException(StdErrors.extend(StdErrors.Invalid_parameter,""+v));
        b.poke_int(adr, vf);
        return null;
    }
View Full Code Here

Examples of abstrasy.Bytes

        /*
         * forme (peek-short bytes adr)
         *
         */
        startAt.isGoodArgsCnt(3);
        Bytes b = (Bytes)startAt.getSubNode(1, Node.TYPE_BYTES).getExternal();
        int adr = (int) startAt.getSubNode(2, Node.TYPE_NUMBER).getNumber();
        return new Node(b.peek_short(adr));
    }
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.